	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad198x_power_eapd_write
_ad198x_power_eapd_write:               ## @ad198x_power_eapd_write
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_snd_hda_query_pin_caps
	movq	_AC_PINCAP_EAPD@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_AC_VERB_SET_EAPD_BTLENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	cmpl	$0, (%rbx)
	setne	%r8b
	addl	%r8d, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_query_pin_caps
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:
	movq	_AC_VERB_SET_EAPD_BTLENABLE@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	cmpl	$0, (%rbx)
	movl	(%rax), %ecx
	setne	%r8b
	addl	%r8d, %r8d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_write            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_ad198x_power_eapd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad198x_power_eapd_write
_ad198x_power_eapd_write:               ; @ad198x_power_eapd_write
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_snd_hda_query_pin_caps
Lloh0:
	adrp	x23, _AC_PINCAP_EAPD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AC_PINCAP_EAPD@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _AC_VERB_SET_EAPD_BTLENABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AC_VERB_SET_EAPD_BTLENABLE@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w3, [x22]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, ne
	lsl	w4, w8, #1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_snd_hda_codec_write
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_snd_hda_query_pin_caps
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w3, [x22]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, ne
	lsl	w4, w8, #1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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
	b	_snd_hda_codec_write
LBB0_4:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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	_ad198x_power_eapd_write
.subsections_via_symbols
