	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function af9015_eeprom_hash
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_af9015_eeprom_hash:                    ## @af9015_eeprom_hash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_d_to_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r13
	movq	_AF9015_EEPROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_READ_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	_AF9015_I2C_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movl	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$1, -96(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	movups	%xmm0, -88(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -112(%rbp)
	movq	%r13, -104(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-120(%rbp), %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_AF9015_EEPROM_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	addq	$4, %r13
	cmpq	%r12, %r14
	jl	LBB0_2
## %bb.4:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_5:
	cmpl	$4, %r12d
	jb	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	xorl	%ebx, %ebx
	movq	_AF9015_EEPROM_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GOLDEN_RATIO_PRIME_32@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, (%rdx)
	movl	(%r15,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	(%rdx), %eax
	movl	%eax, (%rdx)
	incq	%rbx
	movslq	(%r14), %r12
	movq	%r12, %rcx
	shrq	$2, %rcx
	cmpq	%rbx, %rcx
	ja	LBB0_7
LBB0_8:
	testl	%r12d, %r12d
	movq	_AF9015_EEPROM_SIZE@GOTPCREL(%rip), %r12
	jle	LBB0_11
## %bb.9:
	leaq	L_.str(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	addq	$64, %r15
	addl	$16, %ebx
	cmpl	%ebx, (%r12)
	jg	LBB0_10
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF9015_EEPROM_SIZE,4,2         ## @AF9015_EEPROM_SIZE
	.comm	_READ_I2C,4,2                   ## @READ_I2C
	.comm	_AF9015_I2C_EEPROM,4,2          ## @AF9015_I2C_EEPROM
	.comm	_GOLDEN_RATIO_PRIME_32,4,2      ## @GOLDEN_RATIO_PRIME_32
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*ph\n"

L_.str.1:                               ## @.str.1
	.asciz	"eeprom sum %.8x\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed %d\n"

	.no_dead_strip	_af9015_eeprom_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function af9015_eeprom_hash
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_af9015_eeprom_hash:                    ; @af9015_eeprom_hash
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #64
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_d_to_priv
	mov	x20, x0
	ldr	x19, [x21]
Lloh3:
	adrp	x23, _AF9015_EEPROM_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AF9015_EEPROM_SIZE@GOTPAGEOFF]
	ldr	w12, [x23]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh7:
	adrp	x8, _READ_I2C@GOTPAGE
Lloh8:
	ldr	x8, [x8, _READ_I2C@GOTPAGEOFF]
Lloh9:
	adrp	x9, _AF9015_I2C_EEPROM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AF9015_I2C_EEPROM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-120]
	stur	wzr, [x29, #-112]
	mov	w8, #1
	stp	xzr, x8, [x29, #-104]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x29, #-88]
	cmp	w12, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
	mov	x26, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	w25, [x29, #-112]
	stur	x26, [x29, #-104]
	sub	x1, x29, #120
	mov	x0, x21
	bl	_af9015_ctrl_msg
	tbnz	w0, #31, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldrsw	x12, [x23]
	add	x26, x26, #4
	cmp	x25, x12
	b.lt	LBB0_2
; %bb.4:
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
LBB0_5:
	cmp	w12, #4
	b.lo	LBB0_9
; %bb.6:
	mov	x21, #0
	ldr	w8, [x20]
Lloh15:
	adrp	x22, _GOLDEN_RATIO_PRIME_32@GOTPAGE
Lloh16:
	ldr	x22, [x22, _GOLDEN_RATIO_PRIME_32@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	mul	w8, w8, w9
	str	w8, [x20]
	ldr	w0, [x24, x21, lsl #2]
	bl	_le32_to_cpu
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	add	x21, x21, #1
	ldrsw	x12, [x23]
	cmp	x21, x12, lsr #2
	b.lo	LBB0_7
; %bb.8:
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
LBB0_9:
	cmp	w12, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w22, #0
Lloh17:
	adrp	x21, l_.str@PAGE
Lloh18:
	add	x21, x21, l_.str@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	x24, [sp, #-16]!
	mov	x0, x19
	mov	x1, x21
	mov	w2, #16
	bl	_dev_dbg
	add	sp, sp, #16
	ldr	w8, [x23]
	add	x24, x24, #64
	add	w22, w22, #16
	cmp	w8, w22
	b.gt	LBB0_11
LBB0_12:
	ldr	w2, [x20]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w22, #0
	b	LBB0_14
LBB0_13:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x22
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AF9015_EEPROM_SIZE,4,2         ; @AF9015_EEPROM_SIZE
	.comm	_READ_I2C,4,2                   ; @READ_I2C
	.comm	_AF9015_I2C_EEPROM,4,2          ; @AF9015_I2C_EEPROM
	.comm	_GOLDEN_RATIO_PRIME_32,4,2      ; @GOLDEN_RATIO_PRIME_32
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*ph\n"

l_.str.1:                               ; @.str.1
	.asciz	"eeprom sum %.8x\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed %d\n"

	.no_dead_strip	_af9015_eeprom_hash
.subsections_via_symbols
