	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftr_gpio_init
_ftr_gpio_init:                         ## @ftr_gpio_init
	.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
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	movq	_headphone_mute_gpio@GOTPCREL(%rip), %rdx
	movq	_headphone_mute_gpio_activestate@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	callq	_get_gpio
	leaq	L_.str.1(%rip), %rdi
	movq	_amp_mute_gpio@GOTPCREL(%rip), %rdx
	movq	_amp_mute_gpio_activestate@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	callq	_get_gpio
	leaq	L_.str.2(%rip), %rdi
	movq	_lineout_mute_gpio@GOTPCREL(%rip), %rdx
	movq	_lineout_mute_gpio_activestate@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	callq	_get_gpio
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	_hw_reset_gpio@GOTPCREL(%rip), %rdx
	movq	_hw_reset_gpio_activestate@GOTPCREL(%rip), %rcx
	callq	_get_gpio
	leaq	L_.str.5(%rip), %rdi
	movq	_master_mute_gpio@GOTPCREL(%rip), %rdx
	movq	_master_mute_gpio_activestate@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	callq	_get_gpio
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ftr_gpio_set_master@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_methods@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	movq	_ftr_gpio_get_master@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_2:
	leaq	L_.str.6(%rip), %rdi
	movq	_headphone_detect_gpio@GOTPCREL(%rip), %rdx
	movq	_headphone_detect_gpio_activestate@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	callq	_get_gpio
	movq	_headphone_detect_node@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	_lineout_detect_gpio@GOTPCREL(%rip), %r15
	movq	_lineout_detect_gpio_activestate@GOTPCREL(%rip), %rcx
	movq	%r15, %rdx
	callq	_get_gpio
	movq	_lineout_detect_node@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	leaq	L_.str.9(%rip), %rdi
	leaq	L_.str.10(%rip), %rsi
	movq	_linein_detect_gpio@GOTPCREL(%rip), %r12
	movq	_linein_detect_gpio_activestate@GOTPCREL(%rip), %rcx
	movq	%r12, %rdx
	callq	_get_gpio
	movq	_linein_detect_node@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_headphone_detect_gpio@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gpio_enable_dual_edge
	movl	(%r15), %edi
	callq	_gpio_enable_dual_edge
	movl	(%r12), %edi
	callq	_gpio_enable_dual_edge
	movq	_headphone_detect_node@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_headphone_detect_irq@GOTPCREL(%rip), %rsi
	callq	_get_irq
	movq	(%rbx), %rdi
	movq	_lineout_detect_irq@GOTPCREL(%rip), %rsi
	callq	_get_irq
	movq	(%r14), %rdi
	movq	_linein_detect_irq@GOTPCREL(%rip), %rsi
	callq	_get_irq
	movq	%r13, %rdi
	callq	_ftr_gpio_all_amps_off
	movq	$0, 24(%r13)
	leaq	16(%r13), %r14
	leaq	20(%r13), %rdi
	movq	_ftr_handle_notify@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_INIT_DELAYED_WORK
	leaq	8(%r13), %r15
	leaq	12(%r13), %rdi
	movl	(%rbx), %esi
	callq	_INIT_DELAYED_WORK
	leaq	4(%r13), %rdi
	movl	(%rbx), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_init                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"headphone-mute"

	.comm	_headphone_mute_gpio,4,2        ## @headphone_mute_gpio
	.comm	_headphone_mute_gpio_activestate,4,2 ## @headphone_mute_gpio_activestate
L_.str.1:                               ## @.str.1
	.asciz	"amp-mute"

	.comm	_amp_mute_gpio,4,2              ## @amp_mute_gpio
	.comm	_amp_mute_gpio_activestate,4,2  ## @amp_mute_gpio_activestate
L_.str.2:                               ## @.str.2
	.asciz	"lineout-mute"

	.comm	_lineout_mute_gpio,4,2          ## @lineout_mute_gpio
	.comm	_lineout_mute_gpio_activestate,4,2 ## @lineout_mute_gpio_activestate
L_.str.3:                               ## @.str.3
	.asciz	"hw-reset"

L_.str.4:                               ## @.str.4
	.asciz	"audio-hw-reset"

	.comm	_hw_reset_gpio,4,2              ## @hw_reset_gpio
	.comm	_hw_reset_gpio_activestate,4,2  ## @hw_reset_gpio_activestate
L_.str.5:                               ## @.str.5
	.asciz	"master-mute"

	.comm	_master_mute_gpio,4,2           ## @master_mute_gpio
	.comm	_master_mute_gpio_activestate,4,2 ## @master_mute_gpio_activestate
	.comm	_ftr_gpio_set_master,4,2        ## @ftr_gpio_set_master
	.comm	_methods,8,2                    ## @methods
	.comm	_ftr_gpio_get_master,4,2        ## @ftr_gpio_get_master
L_.str.6:                               ## @.str.6
	.asciz	"headphone-detect"

	.comm	_headphone_detect_gpio,4,2      ## @headphone_detect_gpio
	.comm	_headphone_detect_gpio_activestate,4,2 ## @headphone_detect_gpio_activestate
	.comm	_headphone_detect_node,8,3      ## @headphone_detect_node
L_.str.7:                               ## @.str.7
	.asciz	"lineout-detect"

L_.str.8:                               ## @.str.8
	.asciz	"line-output-detect"

	.comm	_lineout_detect_gpio,4,2        ## @lineout_detect_gpio
	.comm	_lineout_detect_gpio_activestate,4,2 ## @lineout_detect_gpio_activestate
	.comm	_lineout_detect_node,8,3        ## @lineout_detect_node
L_.str.9:                               ## @.str.9
	.asciz	"linein-detect"

L_.str.10:                              ## @.str.10
	.asciz	"line-input-detect"

	.comm	_linein_detect_gpio,4,2         ## @linein_detect_gpio
	.comm	_linein_detect_gpio_activestate,4,2 ## @linein_detect_gpio_activestate
	.comm	_linein_detect_node,8,3         ## @linein_detect_node
	.comm	_headphone_detect_irq,4,2       ## @headphone_detect_irq
	.comm	_lineout_detect_irq,4,2         ## @lineout_detect_irq
	.comm	_linein_detect_irq,4,2          ## @linein_detect_irq
	.comm	_ftr_handle_notify,4,2          ## @ftr_handle_notify
	.no_dead_strip	_ftr_gpio_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftr_gpio_init
_ftr_gpio_init:                         ; @ftr_gpio_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x2, _headphone_mute_gpio@GOTPAGE
Lloh3:
	ldr	x2, [x2, _headphone_mute_gpio@GOTPAGEOFF]
Lloh4:
	adrp	x3, _headphone_mute_gpio_activestate@GOTPAGE
Lloh5:
	ldr	x3, [x3, _headphone_mute_gpio_activestate@GOTPAGEOFF]
	mov	x1, #0
	bl	_get_gpio
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh8:
	adrp	x2, _amp_mute_gpio@GOTPAGE
Lloh9:
	ldr	x2, [x2, _amp_mute_gpio@GOTPAGEOFF]
Lloh10:
	adrp	x3, _amp_mute_gpio_activestate@GOTPAGE
Lloh11:
	ldr	x3, [x3, _amp_mute_gpio_activestate@GOTPAGEOFF]
	mov	x1, #0
	bl	_get_gpio
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh14:
	adrp	x2, _lineout_mute_gpio@GOTPAGE
Lloh15:
	ldr	x2, [x2, _lineout_mute_gpio@GOTPAGEOFF]
Lloh16:
	adrp	x3, _lineout_mute_gpio_activestate@GOTPAGE
Lloh17:
	ldr	x3, [x3, _lineout_mute_gpio_activestate@GOTPAGEOFF]
	mov	x1, #0
	bl	_get_gpio
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh22:
	adrp	x2, _hw_reset_gpio@GOTPAGE
Lloh23:
	ldr	x2, [x2, _hw_reset_gpio@GOTPAGEOFF]
Lloh24:
	adrp	x3, _hw_reset_gpio_activestate@GOTPAGE
Lloh25:
	ldr	x3, [x3, _hw_reset_gpio_activestate@GOTPAGEOFF]
	bl	_get_gpio
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh28:
	adrp	x2, _master_mute_gpio@GOTPAGE
Lloh29:
	ldr	x2, [x2, _master_mute_gpio@GOTPAGEOFF]
Lloh30:
	adrp	x3, _master_mute_gpio_activestate@GOTPAGE
Lloh31:
	ldr	x3, [x3, _master_mute_gpio_activestate@GOTPAGEOFF]
	mov	x1, #0
	bl	_get_gpio
	cbz	x0, LBB0_2
; %bb.1:
Lloh32:
	adrp	x8, _ftr_gpio_set_master@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ftr_gpio_set_master@GOTPAGEOFF]
Lloh34:
	adrp	x9, _methods@GOTPAGE
Lloh35:
	ldr	x9, [x9, _methods@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x10, _ftr_gpio_get_master@GOTPAGE
Lloh38:
	ldr	x10, [x10, _ftr_gpio_get_master@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
LBB0_2:
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh42:
	adrp	x20, _headphone_detect_gpio@GOTPAGE
Lloh43:
	ldr	x20, [x20, _headphone_detect_gpio@GOTPAGEOFF]
Lloh44:
	adrp	x3, _headphone_detect_gpio_activestate@GOTPAGE
Lloh45:
	ldr	x3, [x3, _headphone_detect_gpio_activestate@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x20
	bl	_get_gpio
Lloh46:
	adrp	x23, _headphone_detect_node@GOTPAGE
Lloh47:
	ldr	x23, [x23, _headphone_detect_node@GOTPAGEOFF]
	str	x0, [x23]
Lloh48:
	adrp	x0, l_.str.7@PAGE
Lloh49:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh50:
	adrp	x1, l_.str.8@PAGE
Lloh51:
	add	x1, x1, l_.str.8@PAGEOFF
Lloh52:
	adrp	x21, _lineout_detect_gpio@GOTPAGE
Lloh53:
	ldr	x21, [x21, _lineout_detect_gpio@GOTPAGEOFF]
Lloh54:
	adrp	x3, _lineout_detect_gpio_activestate@GOTPAGE
Lloh55:
	ldr	x3, [x3, _lineout_detect_gpio_activestate@GOTPAGEOFF]
	mov	x2, x21
	bl	_get_gpio
Lloh56:
	adrp	x24, _lineout_detect_node@GOTPAGE
Lloh57:
	ldr	x24, [x24, _lineout_detect_node@GOTPAGEOFF]
	str	x0, [x24]
Lloh58:
	adrp	x0, l_.str.9@PAGE
Lloh59:
	add	x0, x0, l_.str.9@PAGEOFF
Lloh60:
	adrp	x1, l_.str.10@PAGE
Lloh61:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh62:
	adrp	x22, _linein_detect_gpio@GOTPAGE
Lloh63:
	ldr	x22, [x22, _linein_detect_gpio@GOTPAGEOFF]
Lloh64:
	adrp	x3, _linein_detect_gpio_activestate@GOTPAGE
Lloh65:
	ldr	x3, [x3, _linein_detect_gpio_activestate@GOTPAGEOFF]
	mov	x2, x22
	bl	_get_gpio
Lloh66:
	adrp	x25, _linein_detect_node@GOTPAGE
Lloh67:
	ldr	x25, [x25, _linein_detect_node@GOTPAGEOFF]
	str	x0, [x25]
	ldr	w0, [x20]
	bl	_gpio_enable_dual_edge
	ldr	w0, [x21]
	bl	_gpio_enable_dual_edge
	ldr	w0, [x22]
	bl	_gpio_enable_dual_edge
	ldr	x0, [x23]
Lloh68:
	adrp	x1, _headphone_detect_irq@GOTPAGE
Lloh69:
	ldr	x1, [x1, _headphone_detect_irq@GOTPAGEOFF]
	bl	_get_irq
	ldr	x0, [x24]
Lloh70:
	adrp	x1, _lineout_detect_irq@GOTPAGE
Lloh71:
	ldr	x1, [x1, _lineout_detect_irq@GOTPAGEOFF]
	bl	_get_irq
	ldr	x0, [x25]
Lloh72:
	adrp	x1, _linein_detect_irq@GOTPAGE
Lloh73:
	ldr	x1, [x1, _linein_detect_irq@GOTPAGEOFF]
	bl	_get_irq
	mov	x0, x19
	bl	_ftr_gpio_all_amps_off
	str	xzr, [x19, #24]
	add	x20, x19, #16
	add	x0, x19, #20
Lloh74:
	adrp	x22, _ftr_handle_notify@GOTPAGE
Lloh75:
	ldr	x22, [x22, _ftr_handle_notify@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_INIT_DELAYED_WORK
	add	x21, x19, #8
	add	x0, x19, #12
	ldr	w1, [x22]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #4
	ldr	w1, [x22]
	bl	_INIT_DELAYED_WORK
	mov	x0, x20
	bl	_mutex_init
	mov	x0, x21
	bl	_mutex_init
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_init
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"headphone-mute"

	.comm	_headphone_mute_gpio,4,2        ; @headphone_mute_gpio
	.comm	_headphone_mute_gpio_activestate,4,2 ; @headphone_mute_gpio_activestate
l_.str.1:                               ; @.str.1
	.asciz	"amp-mute"

	.comm	_amp_mute_gpio,4,2              ; @amp_mute_gpio
	.comm	_amp_mute_gpio_activestate,4,2  ; @amp_mute_gpio_activestate
l_.str.2:                               ; @.str.2
	.asciz	"lineout-mute"

	.comm	_lineout_mute_gpio,4,2          ; @lineout_mute_gpio
	.comm	_lineout_mute_gpio_activestate,4,2 ; @lineout_mute_gpio_activestate
l_.str.3:                               ; @.str.3
	.asciz	"hw-reset"

l_.str.4:                               ; @.str.4
	.asciz	"audio-hw-reset"

	.comm	_hw_reset_gpio,4,2              ; @hw_reset_gpio
	.comm	_hw_reset_gpio_activestate,4,2  ; @hw_reset_gpio_activestate
l_.str.5:                               ; @.str.5
	.asciz	"master-mute"

	.comm	_master_mute_gpio,4,2           ; @master_mute_gpio
	.comm	_master_mute_gpio_activestate,4,2 ; @master_mute_gpio_activestate
	.comm	_ftr_gpio_set_master,4,2        ; @ftr_gpio_set_master
	.comm	_methods,8,2                    ; @methods
	.comm	_ftr_gpio_get_master,4,2        ; @ftr_gpio_get_master
l_.str.6:                               ; @.str.6
	.asciz	"headphone-detect"

	.comm	_headphone_detect_gpio,4,2      ; @headphone_detect_gpio
	.comm	_headphone_detect_gpio_activestate,4,2 ; @headphone_detect_gpio_activestate
	.comm	_headphone_detect_node,8,3      ; @headphone_detect_node
l_.str.7:                               ; @.str.7
	.asciz	"lineout-detect"

l_.str.8:                               ; @.str.8
	.asciz	"line-output-detect"

	.comm	_lineout_detect_gpio,4,2        ; @lineout_detect_gpio
	.comm	_lineout_detect_gpio_activestate,4,2 ; @lineout_detect_gpio_activestate
	.comm	_lineout_detect_node,8,3        ; @lineout_detect_node
l_.str.9:                               ; @.str.9
	.asciz	"linein-detect"

l_.str.10:                              ; @.str.10
	.asciz	"line-input-detect"

	.comm	_linein_detect_gpio,4,2         ; @linein_detect_gpio
	.comm	_linein_detect_gpio_activestate,4,2 ; @linein_detect_gpio_activestate
	.comm	_linein_detect_node,8,3         ; @linein_detect_node
	.comm	_headphone_detect_irq,4,2       ; @headphone_detect_irq
	.comm	_lineout_detect_irq,4,2         ; @lineout_detect_irq
	.comm	_linein_detect_irq,4,2          ; @linein_detect_irq
	.comm	_ftr_handle_notify,4,2          ; @ftr_handle_notify
	.no_dead_strip	_ftr_gpio_init
.subsections_via_symbols
