	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pin_sense
_read_pin_sense:                        ## @read_pin_sense
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$0, 8(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_query_pin_caps
	movq	_AC_PINCAP_TRIG_REQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_AC_VERB_SET_PIN_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
LBB0_3:
	movq	_AC_VERB_GET_PIN_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_AC_PINSENSE_PRESENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_5:
	xorl	%eax, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PINCAP_TRIG_REQ,4,2         ## @AC_PINCAP_TRIG_REQ
	.comm	_AC_VERB_SET_PIN_SENSE,4,2      ## @AC_VERB_SET_PIN_SENSE
	.comm	_AC_VERB_GET_PIN_SENSE,4,2      ## @AC_VERB_GET_PIN_SENSE
	.comm	_AC_PINSENSE_PRESENCE,4,2       ## @AC_PINSENSE_PRESENCE
	.no_dead_strip	_read_pin_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pin_sense
_read_pin_sense:                        ; @read_pin_sense
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_query_pin_caps
Lloh0:
	adrp	x8, _AC_PINCAP_TRIG_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_PINCAP_TRIG_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AC_VERB_SET_PIN_SENSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_VERB_SET_PIN_SENSE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
LBB0_3:
Lloh6:
	adrp	x8, _AC_VERB_GET_PIN_SENSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_VERB_GET_PIN_SENSE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
Lloh9:
	adrp	x8, _AC_PINSENSE_PRESENCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_PINSENSE_PRESENCE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh11:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	eor	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PINCAP_TRIG_REQ,4,2         ; @AC_PINCAP_TRIG_REQ
	.comm	_AC_VERB_SET_PIN_SENSE,4,2      ; @AC_VERB_SET_PIN_SENSE
	.comm	_AC_VERB_GET_PIN_SENSE,4,2      ; @AC_VERB_GET_PIN_SENSE
	.comm	_AC_PINSENSE_PRESENCE,4,2       ; @AC_PINSENSE_PRESENCE
	.no_dead_strip	_read_pin_sense
.subsections_via_symbols
