	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8975_who_i_am
_ak8975_who_i_am:                       ## @ak8975_who_i_am
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_AK09912_REG_WIA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movl	$2, %edx
	callq	_i2c_smbus_read_i2c_block_data_or_emulated
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_AK8975_DEVICE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_11
## %bb.4:
	cmpl	$130, %r15d
	je	LBB0_8
## %bb.5:
	cmpl	$131, %r15d
	jne	LBB0_9
## %bb.6:
	movq	-40(%rbp), %rax
	movq	_AK09911_DEVICE_ID@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_8:
	movq	-40(%rbp), %rax
	movq	_AK09912_DEVICE_ID@GOTPCREL(%rip), %rcx
LBB0_7:
	cmpq	(%rcx), %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AK09912_REG_WIA1,4,2           ## @AK09912_REG_WIA1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading WIA\n"

	.comm	_AK8975_DEVICE_ID,8,3           ## @AK8975_DEVICE_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AK09911_DEVICE_ID,8,3          ## @AK09911_DEVICE_ID
	.comm	_AK09912_DEVICE_ID,8,3          ## @AK09912_DEVICE_ID
L_.str.1:                               ## @.str.1
	.asciz	"Type %d unknown\n"

	.no_dead_strip	_ak8975_who_i_am
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8975_who_i_am
_ak8975_who_i_am:                       ; @ak8975_who_i_am
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _AK09912_REG_WIA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AK09912_REG_WIA1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #2
	bl	_i2c_smbus_read_i2c_block_data_or_emulated
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _AK8975_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AK8975_DEVICE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.3:
	cmp	w20, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #131
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [sp, #16]
Lloh9:
	adrp	x9, _AK09911_DEVICE_ID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AK09911_DEVICE_ID@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_7:
	ldr	x8, [sp, #16]
Lloh13:
	adrp	x9, _AK09912_DEVICE_ID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AK09912_DEVICE_ID@GOTPAGEOFF]
LBB0_8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_9:
	mov	w21, #0
	b	LBB0_12
LBB0_10:
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_11:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AK09912_REG_WIA1,4,2           ; @AK09912_REG_WIA1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading WIA\n"

	.comm	_AK8975_DEVICE_ID,8,3           ; @AK8975_DEVICE_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AK09911_DEVICE_ID,8,3          ; @AK09911_DEVICE_ID
	.comm	_AK09912_DEVICE_ID,8,3          ; @AK09912_DEVICE_ID
l_.str.1:                               ; @.str.1
	.asciz	"Type %d unknown\n"

	.no_dead_strip	_ak8975_who_i_am
.subsections_via_symbols
