	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftr_gpio_exit
_ftr_gpio_exit:                         ## @ftr_gpio_exit
	.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
	callq	_ftr_gpio_all_amps_off
	movq	$0, 72(%rbx)
	leaq	48(%rbx), %r14
	cmpq	$0, 64(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_headphone_detect_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_2:
	leaq	24(%rbx), %r15
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_linein_detect_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_lineout_detect_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_6:
	leaq	52(%rbx), %rdi
	callq	_cancel_delayed_work
	leaq	28(%rbx), %rdi
	callq	_cancel_delayed_work
	leaq	4(%rbx), %rdi
	callq	_cancel_delayed_work
	xorl	%eax, %eax
	callq	_flush_scheduled_work
	movq	%r14, %rdi
	callq	_mutex_destroy
	movq	%r15, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_destroy                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_headphone_detect_irq,4,2       ## @headphone_detect_irq
	.comm	_linein_detect_irq,4,2          ## @linein_detect_irq
	.comm	_lineout_detect_irq,4,2         ## @lineout_detect_irq
	.no_dead_strip	_ftr_gpio_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftr_gpio_exit
_ftr_gpio_exit:                         ; @ftr_gpio_exit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_ftr_gpio_all_amps_off
	str	xzr, [x19, #72]
	add	x20, x19, #48
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _headphone_detect_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _headphone_detect_irq@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
LBB0_2:
	add	x21, x19, #24
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _linein_detect_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _linein_detect_irq@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_free_irq
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _lineout_detect_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lineout_detect_irq@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
LBB0_6:
	add	x0, x19, #52
	bl	_cancel_delayed_work
	add	x0, x19, #28
	bl	_cancel_delayed_work
	add	x0, x19, #4
	bl	_cancel_delayed_work
	bl	_flush_scheduled_work
	mov	x0, x20
	bl	_mutex_destroy
	mov	x0, x21
	bl	_mutex_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_destroy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_headphone_detect_irq,4,2       ; @headphone_detect_irq
	.comm	_linein_detect_irq,4,2          ; @linein_detect_irq
	.comm	_lineout_detect_irq,4,2         ; @lineout_detect_irq
	.no_dead_strip	_ftr_gpio_exit
.subsections_via_symbols
