	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function indep_hp_put
_indep_hp_put:                          ## @indep_hp_put
	.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	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rax), %r12
	movq	(%rbx), %rax
	movl	(%rax), %r13d
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$0, 80(%r12)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%r13d, (%r12)
	je	LBB0_12
## %bb.3:
	movq	40(%r12), %r8
	movq	_AUTO_PIN_HP_OUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, %r8
	sete	%cl
	movq	64(%r12,%rcx,8), %rbx
	cmpq	$0, 56(%r12)
	je	LBB0_8
## %bb.4:
	movl	32(%r12), %esi
	cmpq	%rax, %r8
	jne	LBB0_6
## %bb.5:
	movq	16(%r12), %rax
	movq	48(%r12), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_6:
	movq	16(%r12), %rcx
	movq	24(%r12), %rdx
	movl	(%rdx), %edx
	movl	4(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %r8
LBB0_7:
	callq	_update_aamix_paths
LBB0_8:
	movl	%r13d, (%r12)
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movq	8(%r12), %rax
LBB0_11:
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_call_hp_automute
	movl	$1, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_AUTO_PIN_HP_OUT,8,3            ## @AUTO_PIN_HP_OUT
	.no_dead_strip	_indep_hp_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function indep_hp_put
_indep_hp_put:                          ; @indep_hp_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x19]
	ldr	w22, [x8]
	add	x19, x21, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_13
LBB0_4:
	ldr	x4, [x21, #40]
Lloh3:
	adrp	x8, _AUTO_PIN_HP_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTO_PIN_HP_OUT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #64
	mov	w10, #72
	cmp	x4, x8
	csel	x9, x10, x9, eq
	ldr	x23, [x21, x9]
	ldr	x9, [x21, #56]
	cbz	x9, LBB0_9
; %bb.5:
	ldr	w1, [x21, #32]
	cmp	x4, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x21, #48]
	ldr	w2, [x8]
	ldr	x8, [x21, #16]
	ldr	w3, [x8]
	mov	x0, x20
	b	LBB0_8
LBB0_7:
	ldp	x10, x9, [x21, #16]
	ldr	w2, [x9]
	ldr	w3, [x10, #4]
	mov	x0, x20
	mov	x4, x8
LBB0_8:
	bl	_update_aamix_paths
LBB0_9:
	str	w22, [x21]
	cbz	w22, LBB0_11
; %bb.10:
	mov	x8, #0
	b	LBB0_12
LBB0_11:
	ldr	x8, [x21, #8]
LBB0_12:
	str	x8, [x23]
	mov	x0, x20
	mov	x1, #0
	bl	_call_hp_automute
	mov	w20, #1
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_AUTO_PIN_HP_OUT,8,3            ; @AUTO_PIN_HP_OUT
	.no_dead_strip	_indep_hp_put
.subsections_via_symbols
