	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_jack_detect_enable_callback ## -- Begin function snd_hda_jack_detect_enable_callback
	.p2align	4, 0x90
_snd_hda_jack_detect_enable_callback:   ## @snd_hda_jack_detect_enable_callback
	.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	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_hda_jack_tbl_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.3:
	movl	$1, (%rax)
	testb	%r12b, %r12b
	je	LBB0_5
## %bb.4:
	movb	%r12b, 4(%rax)
LBB0_5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%r15, 16(%rax)
LBB0_7:
	cmpq	$0, (%rbx)
	jg	LBB0_8
## %bb.9:
	movq	_AC_VERB_SET_UNSOLICITED_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AC_USRSP_EN@GOTPCREL(%rip), %rdx
	movl	8(%rax), %r8d
	orl	(%rdx), %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_cache      ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_8:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AC_VERB_SET_UNSOLICITED_ENABLE,4,2 ## @AC_VERB_SET_UNSOLICITED_ENABLE
	.comm	_AC_USRSP_EN,4,2                ## @AC_USRSP_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_jack_detect_enable_callback ; -- Begin function snd_hda_jack_detect_enable_callback
	.p2align	2
_snd_hda_jack_detect_enable_callback:   ; @snd_hda_jack_detect_enable_callback
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_snd_hda_jack_tbl_new
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x0]
	cbnz	w8, LBB0_7
; %bb.2:
	mov	w8, #1
	str	w8, [x0]
	cbz	w22, LBB0_4
; %bb.3:
	strb	w22, [x0, #4]
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	str	x21, [x0, #16]
LBB0_6:
	ldr	x8, [x20]
	cmp	x8, #0
	b.le	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
Lloh3:
	adrp	x8, _AC_VERB_SET_UNSOLICITED_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_VERB_SET_UNSOLICITED_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _AC_USRSP_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_USRSP_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	orr	w4, w9, w8
	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_write_cache
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AC_VERB_SET_UNSOLICITED_ENABLE,4,2 ; @AC_VERB_SET_UNSOLICITED_ENABLE
	.comm	_AC_USRSP_EN,4,2                ; @AC_USRSP_EN
.subsections_via_symbols
