	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_irq_handle_tune_op_ended
_fm_irq_handle_tune_op_ended:           ## @fm_irq_handle_tune_op_ended
	.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, %rbx
	movq	_FM_FR_EVENT@GOTPCREL(%rip), %rax
	movq	_FM_BL_EVENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	(%rdi), %ecx
	movq	_FM_HW_POWER_ENB_IDX@GOTPCREL(%rip), %r14
	testl	%ecx, 4(%rdi)
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fmdbg
	movq	_FM_AF_SWITCH_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_FM_AF_JUMP_RD_FREQ_IDX@GOTPCREL(%rip), %r14
	jmp	LBB0_4
LBB0_3:
	leaq	16(%rbx), %rdi
	callq	_complete
LBB0_4:
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fm_irq_call                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_FR_EVENT,4,2                ## @FM_FR_EVENT
	.comm	_FM_BL_EVENT,4,2                ## @FM_BL_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq: tune ended/bandlimit reached\n"

	.comm	_FM_AF_SWITCH_INPROGRESS,4,2    ## @FM_AF_SWITCH_INPROGRESS
	.comm	_FM_AF_JUMP_RD_FREQ_IDX,8,3     ## @FM_AF_JUMP_RD_FREQ_IDX
	.comm	_FM_HW_POWER_ENB_IDX,8,3        ## @FM_HW_POWER_ENB_IDX
	.no_dead_strip	_fm_irq_handle_tune_op_ended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm_irq_handle_tune_op_ended
_fm_irq_handle_tune_op_ended:           ; @fm_irq_handle_tune_op_ended
	.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, _FM_FR_EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_FR_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FM_BL_EVENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FM_BL_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [x0]
	and	w8, w8, w9
	tst	w8, w10
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmdbg
Lloh8:
	adrp	x8, _FM_AF_SWITCH_INPROGRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FM_AF_SWITCH_INPROGRESS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _FM_AF_JUMP_RD_FREQ_IDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FM_AF_JUMP_RD_FREQ_IDX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	add	x0, x19, #16
	bl	_complete
LBB0_4:
Lloh13:
	adrp	x8, _FM_HW_POWER_ENB_IDX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FM_HW_POWER_ENB_IDX@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fm_irq_call
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_FR_EVENT,4,2                ; @FM_FR_EVENT
	.comm	_FM_BL_EVENT,4,2                ; @FM_BL_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq: tune ended/bandlimit reached\n"

	.comm	_FM_AF_SWITCH_INPROGRESS,4,2    ; @FM_AF_SWITCH_INPROGRESS
	.comm	_FM_AF_JUMP_RD_FREQ_IDX,8,3     ; @FM_AF_JUMP_RD_FREQ_IDX
	.comm	_FM_HW_POWER_ENB_IDX,8,3        ; @FM_HW_POWER_ENB_IDX
	.no_dead_strip	_fm_irq_handle_tune_op_ended
.subsections_via_symbols
