	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8974_reset
_ak8974_reset:                          ## @ak8974_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AK8974_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ak8974_set_power
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	movq	_AK8974_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AK8974_CTRL2_RESDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movq	_AK8974_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AK8974_CTRL3_RESDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	_AK8974_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AK8974_INT_CTRL_RESDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_AK8974_PWR_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ak8974_set_power               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AK8974_PWR_ON,4,2              ## @AK8974_PWR_ON
	.comm	_AK8974_CTRL2,4,2               ## @AK8974_CTRL2
	.comm	_AK8974_CTRL2_RESDEF,4,2        ## @AK8974_CTRL2_RESDEF
	.comm	_AK8974_CTRL3,4,2               ## @AK8974_CTRL3
	.comm	_AK8974_CTRL3_RESDEF,4,2        ## @AK8974_CTRL3_RESDEF
	.comm	_AK8974_INT_CTRL,4,2            ## @AK8974_INT_CTRL
	.comm	_AK8974_INT_CTRL_RESDEF,4,2     ## @AK8974_INT_CTRL_RESDEF
	.comm	_AK8974_PWR_OFF,4,2             ## @AK8974_PWR_OFF
	.no_dead_strip	_ak8974_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8974_reset
_ak8974_reset:                          ; @ak8974_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AK8974_PWR_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AK8974_PWR_ON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ak8974_set_power
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _AK8974_CTRL2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AK8974_CTRL2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _AK8974_CTRL2_RESDEF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AK8974_CTRL2_RESDEF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _AK8974_CTRL3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AK8974_CTRL3@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _AK8974_CTRL3_RESDEF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AK8974_CTRL3_RESDEF@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _AK8974_INT_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AK8974_INT_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AK8974_INT_CTRL_RESDEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AK8974_INT_CTRL_RESDEF@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_regmap_write
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh21:
	adrp	x8, _AK8974_PWR_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AK8974_PWR_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ak8974_set_power
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AK8974_PWR_ON,4,2              ; @AK8974_PWR_ON
	.comm	_AK8974_CTRL2,4,2               ; @AK8974_CTRL2
	.comm	_AK8974_CTRL2_RESDEF,4,2        ; @AK8974_CTRL2_RESDEF
	.comm	_AK8974_CTRL3,4,2               ; @AK8974_CTRL3
	.comm	_AK8974_CTRL3_RESDEF,4,2        ; @AK8974_CTRL3_RESDEF
	.comm	_AK8974_INT_CTRL,4,2            ; @AK8974_INT_CTRL
	.comm	_AK8974_INT_CTRL_RESDEF,4,2     ; @AK8974_INT_CTRL_RESDEF
	.comm	_AK8974_PWR_OFF,4,2             ; @AK8974_PWR_OFF
	.no_dead_strip	_ak8974_reset
.subsections_via_symbols
