	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8975_set_mode
_ak8975_set_mode:                       ## @ak8975_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	_CNTL_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rdi
	movl	(%rdx,%rcx,4), %ebx
	notl	%ebx
	andl	(%r14), %ebx
	movl	%esi, %ecx
	orl	(%rdi,%rcx,4), %ebx
	movl	16(%r14), %edi
	movq	16(%rax), %rax
	movq	_CNTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%ebx, (%r14)
	movl	$100, %edi
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_usleep_range
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNTL_MODE,8,3                  ## @CNTL_MODE
	.comm	_CNTL,8,3                       ## @CNTL
	.no_dead_strip	_ak8975_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8975_set_mode
_ak8975_set_mode:                       ; @ak8975_set_mode
	.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, _CNTL_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNTL_MODE@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh2:
	ldr	x8, [x8]
	ldp	x10, x11, [x9]
	ldr	w8, [x10, x8, lsl #2]
	ldr	w10, [x0]
	bic	w8, w10, w8
	ldr	w10, [x11, w1, uxtw #2]
	orr	w20, w10, w8
	ldr	w0, [x0, #16]
	ldr	x8, [x9, #16]
Lloh3:
	adrp	x9, _CNTL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CNTL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x2, x20
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	w20, [x19]
	mov	w0, #100
	mov	w1, #500
	bl	_usleep_range
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CNTL_MODE,8,3                  ; @CNTL_MODE
	.comm	_CNTL,8,3                       ; @CNTL
	.no_dead_strip	_ak8975_set_mode
.subsections_via_symbols
