	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pin_eapd
_set_pin_eapd:                          ## @set_pin_eapd
	.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
	movq	8(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_snd_hda_query_pin_caps
	movq	_AC_PINCAP_EAPD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%al
	setne	%cl
	cmpq	$0, (%r12)
	cmovel	%ecx, %eax
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	testb	%al, %al
	je	LBB0_4
LBB0_5:
	movq	_AC_VERB_SET_EAPD_BTLENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movzbl	%al, %r8d
	addl	%r8d, %r8d
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_update_cache     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PINCAP_EAPD,4,2             ## @AC_PINCAP_EAPD
	.comm	_AC_VERB_SET_EAPD_BTLENABLE,4,2 ## @AC_VERB_SET_EAPD_BTLENABLE
	.no_dead_strip	_set_pin_eapd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pin_eapd
_set_pin_eapd:                          ; @set_pin_eapd
	.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
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_snd_hda_query_pin_caps
Lloh0:
	adrp	x8, _AC_PINCAP_EAPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_PINCAP_EAPD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.3:
	ldr	x8, [x20]
	cmp	w21, #0
	cset	w9, eq
	ldr	x10, [x22]
	cset	w11, ne
	cmp	x8, #0
	csel	w8, w11, w9, eq
	cmp	x10, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_1
; %bb.4:
Lloh3:
	adrp	x9, _AC_VERB_SET_EAPD_BTLENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_VERB_SET_EAPD_BTLENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	mov	w9, #2
	cmp	w8, #0
	csel	w4, w9, wzr, ne
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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	_snd_hda_codec_update_cache
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PINCAP_EAPD,4,2             ; @AC_PINCAP_EAPD
	.comm	_AC_VERB_SET_EAPD_BTLENABLE,4,2 ; @AC_VERB_SET_EAPD_BTLENABLE
	.no_dead_strip	_set_pin_eapd
.subsections_via_symbols
