	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8974_trigmeas
_ak8974_trigmeas:                       ## @ak8974_trigmeas
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_AK8974_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_AK8974_CTRL2_INT_EN@GOTPCREL(%rip), %rax
	movq	_AK8974_CTRL2_DRDY_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r14d
	orl	%ecx, %r14d
	movq	_AK8974_CTRL2_DRDY_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r14d
	xorl	%r15d, %r15d
	cmpl	$0, 8(%rbx)
	cmovel	%eax, %r15d
	orl	%ecx, %r15d
	leaq	4(%rbx), %rdi
	callq	_init_completion
	movl	(%rbx), %edi
	movq	_AK8974_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movl	(%rbx), %edi
	movq	_AK8974_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AK8974_CTRL3_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK8974_INT_CLEAR,4,2           ## @AK8974_INT_CLEAR
	.comm	_AK8974_CTRL2_INT_EN,4,2        ## @AK8974_CTRL2_INT_EN
	.comm	_AK8974_CTRL2_DRDY_EN,4,2       ## @AK8974_CTRL2_DRDY_EN
	.comm	_AK8974_CTRL2_DRDY_POL,4,2      ## @AK8974_CTRL2_DRDY_POL
	.comm	_AK8974_CTRL2,4,2               ## @AK8974_CTRL2
	.comm	_AK8974_CTRL3,4,2               ## @AK8974_CTRL3
	.comm	_AK8974_CTRL3_FORCE,4,2         ## @AK8974_CTRL3_FORCE
	.no_dead_strip	_ak8974_trigmeas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8974_trigmeas
_ak8974_trigmeas:                       ; @ak8974_trigmeas
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AK8974_INT_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AK8974_INT_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AK8974_CTRL2_INT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AK8974_CTRL2_INT_EN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AK8974_CTRL2_DRDY_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AK8974_CTRL2_DRDY_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x10, _AK8974_CTRL2_DRDY_POL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AK8974_CTRL2_DRDY_POL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w20, w8, w10
	ldr	w8, [x19, #8]
	cmp	w8, #0
	csel	w8, w10, wzr, eq
	orr	w21, w8, w9
	add	x0, x19, #4
	bl	_init_completion
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _AK8974_CTRL2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AK8974_CTRL2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x21
	bl	_regmap_update_bits
	cbnz	w0, LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _AK8974_CTRL3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AK8974_CTRL3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AK8974_CTRL3_FORCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AK8974_CTRL3_FORCE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AK8974_INT_CLEAR,4,2           ; @AK8974_INT_CLEAR
	.comm	_AK8974_CTRL2_INT_EN,4,2        ; @AK8974_CTRL2_INT_EN
	.comm	_AK8974_CTRL2_DRDY_EN,4,2       ; @AK8974_CTRL2_DRDY_EN
	.comm	_AK8974_CTRL2_DRDY_POL,4,2      ; @AK8974_CTRL2_DRDY_POL
	.comm	_AK8974_CTRL2,4,2               ; @AK8974_CTRL2
	.comm	_AK8974_CTRL3,4,2               ; @AK8974_CTRL3
	.comm	_AK8974_CTRL3_FORCE,4,2         ; @AK8974_CTRL3_FORCE
	.no_dead_strip	_ak8974_trigmeas
.subsections_via_symbols
