	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_jack_detectable             ## -- Begin function is_jack_detectable
	.p2align	4, 0x90
_is_jack_detectable:                    ## @is_jack_detectable
	.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
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_snd_hda_query_pin_caps
	movq	_AC_PINCAP_PRES_DETECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_get_defcfg_misc
	movq	_AC_DEFCFG_MISC_NO_PRESENCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_get_wcaps
	movq	_AC_WCAP_UNSOL_CAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_5:
	movl	$1, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PINCAP_PRES_DETECT,4,2      ## @AC_PINCAP_PRES_DETECT
	.comm	_AC_DEFCFG_MISC_NO_PRESENCE,4,2 ## @AC_DEFCFG_MISC_NO_PRESENCE
	.comm	_AC_WCAP_UNSOL_CAP,4,2          ## @AC_WCAP_UNSOL_CAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_jack_detectable             ; -- Begin function is_jack_detectable
	.p2align	2
_is_jack_detectable:                    ; @is_jack_detectable
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	bl	_snd_hda_query_pin_caps
Lloh0:
	adrp	x8, _AC_PINCAP_PRES_DETECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_PINCAP_PRES_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_codec_get_pincfg
	bl	_get_defcfg_misc
Lloh3:
	adrp	x8, _AC_DEFCFG_MISC_NO_PRESENCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_DEFCFG_MISC_NO_PRESENCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_get_wcaps
Lloh6:
	adrp	x8, _AC_WCAP_UNSOL_CAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_WCAP_UNSOL_CAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19]
	cbz	w8, LBB0_1
LBB0_7:
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PINCAP_PRES_DETECT,4,2      ; @AC_PINCAP_PRES_DETECT
	.comm	_AC_DEFCFG_MISC_NO_PRESENCE,4,2 ; @AC_DEFCFG_MISC_NO_PRESENCE
	.comm	_AC_WCAP_UNSOL_CAP,4,2          ; @AC_WCAP_UNSOL_CAP
.subsections_via_symbols
