	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_extcon_hp_clamp
_arizona_extcon_hp_clamp:               ## @arizona_extcon_hp_clamp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	cmpl	$128, %eax
	je	LBB0_2
## %bb.5:
	movl	$0, %r12d
	cmpl	$131, %eax
	je	LBB0_7
## %bb.6:
	movq	_ARIZONA_RMV_SHRT_HP1L@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r14d, %r14d
	movl	%r15d, %r12d
	cmovel	%r14d, %r12d
	jmp	LBB0_7
LBB0_3:
	movq	_ARIZONA_HP1L_SHRTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ARIZONA_HP1L_FLWR@GOTPCREL(%rip), %rcx
	movq	_ARIZONA_HP1L_SHRTI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	orl	(%rcx), %r12d
	movl	%r12d, %r15d
	orl	%eax, %r15d
	testl	%r14d, %r14d
	movq	_ARIZONA_TST_CAP_CLAMP@GOTPCREL(%rip), %rcx
	cmoveq	_ARIZONA_TST_CAP_DEFAULT@GOTPCREL(%rip), %rcx
	cmovnel	%eax, %r12d
	movl	(%rcx), %ecx
	movl	20(%rbx), %edi
	movq	_ARIZONA_HP_TEST_CTRL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_HP1_TST_CAP_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_2:
	xorl	%r12d, %r12d
LBB0_7:
	movl	12(%rbx), %edi
	callq	_snd_soc_dapm_mutex_lock
	movl	%r14d, 4(%rbx)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:
	movl	20(%rbx), %edi
	movq	_ARIZONA_OUTPUT_ENABLES_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_OUT1L_ENA@GOTPCREL(%rip), %rax
	movq	_ARIZONA_OUT1R_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_10:
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.11:
	movl	20(%rbx), %edi
	movq	_ARIZONA_HP_CTRL_1L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_13:
	movl	20(%rbx), %edi
	movq	_ARIZONA_HP_CTRL_1R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_15:
	testl	%r14d, %r14d
	jne	LBB0_18
## %bb.16:
	movl	8(%rbx), %ecx
	movl	20(%rbx), %edi
	movq	_ARIZONA_OUTPUT_ENABLES_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_OUT1L_ENA@GOTPCREL(%rip), %rax
	movq	_ARIZONA_OUT1R_ENA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	16(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_18:
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_soc_dapm_mutex_unlock      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_HP1L_SHRTO,4,2         ## @ARIZONA_HP1L_SHRTO
	.comm	_ARIZONA_HP1L_FLWR,4,2          ## @ARIZONA_HP1L_FLWR
	.comm	_ARIZONA_HP1L_SHRTI,4,2         ## @ARIZONA_HP1L_SHRTI
	.comm	_ARIZONA_TST_CAP_CLAMP,4,2      ## @ARIZONA_TST_CAP_CLAMP
	.comm	_ARIZONA_TST_CAP_DEFAULT,4,2    ## @ARIZONA_TST_CAP_DEFAULT
	.comm	_ARIZONA_HP_TEST_CTRL_1,4,2     ## @ARIZONA_HP_TEST_CTRL_1
	.comm	_ARIZONA_HP1_TST_CAP_SEL_MASK,4,2 ## @ARIZONA_HP1_TST_CAP_SEL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set TST_CAP_SEL: %d\n"

	.comm	_ARIZONA_RMV_SHRT_HP1L,4,2      ## @ARIZONA_RMV_SHRT_HP1L
	.comm	_ARIZONA_OUTPUT_ENABLES_1,4,2   ## @ARIZONA_OUTPUT_ENABLES_1
	.comm	_ARIZONA_OUT1L_ENA,4,2          ## @ARIZONA_OUT1L_ENA
	.comm	_ARIZONA_OUT1R_ENA,4,2          ## @ARIZONA_OUT1R_ENA
L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable headphone outputs: %d\n"

	.comm	_ARIZONA_HP_CTRL_1L,4,2         ## @ARIZONA_HP_CTRL_1L
L_.str.2:                               ## @.str.2
	.asciz	"Failed to do clamp: %d\n"

	.comm	_ARIZONA_HP_CTRL_1R,4,2         ## @ARIZONA_HP_CTRL_1R
L_.str.3:                               ## @.str.3
	.asciz	"Failed to restore headphone outputs: %d\n"

	.no_dead_strip	_arizona_extcon_hp_clamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_extcon_hp_clamp
_arizona_extcon_hp_clamp:               ; @arizona_extcon_hp_clamp
	.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, x1
	ldr	x22, [x0]
	ldr	w8, [x22]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #131
	b.eq	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _ARIZONA_RMV_SHRT_HP1L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIZONA_RMV_SHRT_HP1L@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cmp	w19, #0
	csel	w21, wzr, w20, eq
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ARIZONA_HP1L_SHRTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARIZONA_HP1L_SHRTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ARIZONA_HP1L_FLWR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARIZONA_HP1L_FLWR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ARIZONA_HP1L_SHRTI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ARIZONA_HP1L_SHRTI@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w20, w9, w8
Lloh12:
	adrp	x10, _ARIZONA_TST_CAP_DEFAULT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ARIZONA_TST_CAP_DEFAULT@GOTPAGEOFF]
	cmp	w19, #0
	csel	w21, w9, w8, eq
Lloh14:
	adrp	x8, _ARIZONA_TST_CAP_CLAMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARIZONA_TST_CAP_CLAMP@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w3, [x8]
	ldr	w0, [x22, #20]
Lloh16:
	adrp	x8, _ARIZONA_HP_TEST_CTRL_1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARIZONA_HP_TEST_CTRL_1@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _ARIZONA_HP1_TST_CAP_SEL_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARIZONA_HP1_TST_CAP_SEL_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	w0, [x22, #16]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_6:
	ldr	w0, [x22, #12]
	bl	_snd_soc_dapm_mutex_lock
	str	w19, [x22, #4]
Lloh24:
	adrp	x23, _ARIZONA_OUTPUT_ENABLES_1@GOTPAGE
Lloh25:
	ldr	x23, [x23, _ARIZONA_OUTPUT_ENABLES_1@GOTPAGEOFF]
Lloh26:
	adrp	x24, _ARIZONA_OUT1L_ENA@GOTPAGE
Lloh27:
	ldr	x24, [x24, _ARIZONA_OUT1L_ENA@GOTPAGEOFF]
Lloh28:
	adrp	x25, _ARIZONA_OUT1R_ENA@GOTPAGE
Lloh29:
	ldr	x25, [x25, _ARIZONA_OUT1R_ENA@GOTPAGEOFF]
	cbz	w19, LBB0_9
; %bb.7:
	ldr	w0, [x22, #20]
	ldr	w1, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	w3, #0
	bl	_regmap_update_bits
	cbz	w0, LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	w0, [x22, #16]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_9:
	cbz	w20, LBB0_14
; %bb.10:
	ldr	w0, [x22, #20]
Lloh32:
	adrp	x8, _ARIZONA_HP_CTRL_1L@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ARIZONA_HP_CTRL_1L@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x21
	bl	_regmap_update_bits
	cbz	w0, LBB0_12
; %bb.11:
	mov	x2, x0
	ldr	w0, [x22, #16]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_12:
	ldr	w0, [x22, #20]
Lloh37:
	adrp	x8, _ARIZONA_HP_CTRL_1R@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ARIZONA_HP_CTRL_1R@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x21
	bl	_regmap_update_bits
	cbz	w0, LBB0_14
; %bb.13:
	mov	x2, x0
	ldr	w0, [x22, #16]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_14:
	cbnz	w19, LBB0_17
; %bb.15:
	ldr	w0, [x22, #20]
	ldr	w1, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w2, w9, w8
	ldr	w3, [x22, #8]
	bl	_regmap_update_bits
	cbz	w0, LBB0_17
; %bb.16:
	mov	x2, x0
	ldr	w0, [x22, #16]
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_17:
	ldr	w0, [x22, #12]
	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	_snd_soc_dapm_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_HP1L_SHRTO,4,2         ; @ARIZONA_HP1L_SHRTO
	.comm	_ARIZONA_HP1L_FLWR,4,2          ; @ARIZONA_HP1L_FLWR
	.comm	_ARIZONA_HP1L_SHRTI,4,2         ; @ARIZONA_HP1L_SHRTI
	.comm	_ARIZONA_TST_CAP_CLAMP,4,2      ; @ARIZONA_TST_CAP_CLAMP
	.comm	_ARIZONA_TST_CAP_DEFAULT,4,2    ; @ARIZONA_TST_CAP_DEFAULT
	.comm	_ARIZONA_HP_TEST_CTRL_1,4,2     ; @ARIZONA_HP_TEST_CTRL_1
	.comm	_ARIZONA_HP1_TST_CAP_SEL_MASK,4,2 ; @ARIZONA_HP1_TST_CAP_SEL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set TST_CAP_SEL: %d\n"

	.comm	_ARIZONA_RMV_SHRT_HP1L,4,2      ; @ARIZONA_RMV_SHRT_HP1L
	.comm	_ARIZONA_OUTPUT_ENABLES_1,4,2   ; @ARIZONA_OUTPUT_ENABLES_1
	.comm	_ARIZONA_OUT1L_ENA,4,2          ; @ARIZONA_OUT1L_ENA
	.comm	_ARIZONA_OUT1R_ENA,4,2          ; @ARIZONA_OUT1R_ENA
l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable headphone outputs: %d\n"

	.comm	_ARIZONA_HP_CTRL_1L,4,2         ; @ARIZONA_HP_CTRL_1L
l_.str.2:                               ; @.str.2
	.asciz	"Failed to do clamp: %d\n"

	.comm	_ARIZONA_HP_CTRL_1R,4,2         ; @ARIZONA_HP_CTRL_1R
l_.str.3:                               ; @.str.3
	.asciz	"Failed to restore headphone outputs: %d\n"

	.no_dead_strip	_arizona_extcon_hp_clamp
.subsections_via_symbols
