	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_iqm_af
_set_iqm_af:                            ## @set_iqm_af
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	$0, -36(%rbp)
	movq	(%rdi), %r15
	movq	_IQM_AF_STDBY__A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE@GOTPCREL(%rip), %rax
	movq	_IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_IQM_AF_STDBY_STDBY_PD_A2_ACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	orl	-36(%rbp), %edx
	jmp	LBB0_4
LBB0_2:
	notl	%edx
	andl	-36(%rbp), %edx
LBB0_4:
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movl	%ebx, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IQM_AF_STDBY__A,4,2            ## @IQM_AF_STDBY__A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE,4,2 ## @IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE,4,2 ## @IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_PD_A2_ACTIVE,4,2 ## @IQM_AF_STDBY_STDBY_PD_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE,4,2 ## @IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE,4,2 ## @IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE
	.no_dead_strip	_set_iqm_af
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_iqm_af
_set_iqm_af:                            ; @set_iqm_af
	.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	x20, x1
	str	wzr, [sp, #12]
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _IQM_AF_STDBY__A@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IQM_AF_STDBY__A@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _IQM_AF_STDBY_STDBY_PD_A2_ACTIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IQM_AF_STDBY_STDBY_PD_A2_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	b	LBB0_4
LBB0_3:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_4:
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_5:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IQM_AF_STDBY__A,4,2            ; @IQM_AF_STDBY__A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE,4,2 ; @IQM_AF_STDBY_STDBY_ADC_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE,4,2 ; @IQM_AF_STDBY_STDBY_AMP_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_PD_A2_ACTIVE,4,2 ; @IQM_AF_STDBY_STDBY_PD_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE,4,2 ; @IQM_AF_STDBY_STDBY_TAGC_IF_A2_ACTIVE
	.comm	_IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE,4,2 ; @IQM_AF_STDBY_STDBY_TAGC_RF_A2_ACTIVE
	.no_dead_strip	_set_iqm_af
.subsections_via_symbols
