	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fxas21002c_mode_set
_fxas21002c_mode_set:                   ## @fxas21002c_mode_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	%esi, (%rdi)
	je	LBB0_10
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_FXAS21002C_MODE_READY@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	cmpl	%r14d, (%r12)
	sete	%sil
	movq	8(%rdi), %rax
	movq	_F_READY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_regmap_field_write
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_FXAS21002C_MODE_ACTIVE@GOTPCREL(%rip), %r13
	xorl	%esi, %esi
	cmpl	%r14d, (%r13)
	sete	%sil
	movq	8(%r15), %rax
	movq	_F_ACTIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_regmap_field_write
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	cmpl	%r14d, (%r13)
	jne	LBB0_7
## %bb.5:
	movslq	(%r15), %rax
	movq	_FXAS21002C_MODE_STANDBY@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_FXAS21002C_STANDBY_ACTIVE_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep_interruptible
LBB0_7:
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.8:
	movq	_FXAS21002C_READY_ACTIVE_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep_interruptible
	movl	(%r15), %eax
LBB0_9:
	movl	%eax, 4(%r15)
	movl	%r14d, (%r15)
	jmp	LBB0_10
LBB0_2:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FXAS21002C_MODE_READY,4,2      ## @FXAS21002C_MODE_READY
	.comm	_F_READY,8,3                    ## @F_READY
	.comm	_FXAS21002C_MODE_ACTIVE,4,2     ## @FXAS21002C_MODE_ACTIVE
	.comm	_F_ACTIVE,8,3                   ## @F_ACTIVE
	.comm	_FXAS21002C_MODE_STANDBY,8,3    ## @FXAS21002C_MODE_STANDBY
	.comm	_FXAS21002C_STANDBY_ACTIVE_TIME_MS,4,2 ## @FXAS21002C_STANDBY_ACTIVE_TIME_MS
	.comm	_FXAS21002C_READY_ACTIVE_TIME_MS,4,2 ## @FXAS21002C_READY_ACTIVE_TIME_MS
	.no_dead_strip	_fxas21002c_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fxas21002c_mode_set
_fxas21002c_mode_set:                   ; @fxas21002c_mode_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_11
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _FXAS21002C_MODE_READY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FXAS21002C_MODE_READY@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w1
	cset	w1, eq
	ldr	x8, [x0, #8]
Lloh2:
	adrp	x9, _F_READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _F_READY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_regmap_field_write
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh5:
	adrp	x23, _FXAS21002C_MODE_ACTIVE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FXAS21002C_MODE_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w19
	cset	w1, eq
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x9, _F_ACTIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _F_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_regmap_field_write
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.5:
	ldrsw	x8, [x20]
Lloh10:
	adrp	x9, _FXAS21002C_MODE_STANDBY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FXAS21002C_MODE_STANDBY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _FXAS21002C_STANDBY_ACTIVE_TIME_MS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FXAS21002C_STANDBY_ACTIVE_TIME_MS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_msleep_interruptible
LBB0_7:
	ldr	w8, [x20]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _FXAS21002C_READY_ACTIVE_TIME_MS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FXAS21002C_READY_ACTIVE_TIME_MS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_msleep_interruptible
	ldr	w8, [x20]
LBB0_9:
	stp	w19, w8, [x20]
	b	LBB0_11
LBB0_10:
	mov	x21, x0
LBB0_11:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FXAS21002C_MODE_READY,4,2      ; @FXAS21002C_MODE_READY
	.comm	_F_READY,8,3                    ; @F_READY
	.comm	_FXAS21002C_MODE_ACTIVE,4,2     ; @FXAS21002C_MODE_ACTIVE
	.comm	_F_ACTIVE,8,3                   ; @F_ACTIVE
	.comm	_FXAS21002C_MODE_STANDBY,8,3    ; @FXAS21002C_MODE_STANDBY
	.comm	_FXAS21002C_STANDBY_ACTIVE_TIME_MS,4,2 ; @FXAS21002C_STANDBY_ACTIVE_TIME_MS
	.comm	_FXAS21002C_READY_ACTIVE_TIME_MS,4,2 ; @FXAS21002C_READY_ACTIVE_TIME_MS
	.no_dead_strip	_fxas21002c_mode_set
.subsections_via_symbols
