	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __snd_hda_jack_add_kctl
___snd_hda_jack_add_kctl:               ## @__snd_hda_jack_add_kctl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_snd_hda_jack_tbl_new
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_snd_kctl_jack_new
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_snd_hda_ctl_add
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	%r14, 16(%rbx)
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_snd_hda_jack_detect
	movq	(%r13), %rcx
	movl	(%rcx), %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_snd_kctl_jack_report
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hda_free_jack_priv,4,2         ## @hda_free_jack_priv
	.no_dead_strip	___snd_hda_jack_add_kctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __snd_hda_jack_add_kctl
___snd_hda_jack_add_kctl:               ; @__snd_hda_jack_add_kctl
	.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	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	bl	_snd_hda_jack_tbl_new
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	bl	_snd_kctl_jack_new
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_snd_hda_ctl_add
	tbnz	w0, #31, LBB0_3
; %bb.6:
	str	x23, [x22, #16]
	cmp	w21, #0
	cset	w8, ne
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_detect
	mov	x2, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_snd_kctl_jack_report
	b	LBB0_2
LBB0_7:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hda_free_jack_priv,4,2         ; @hda_free_jack_priv
	.no_dead_strip	___snd_hda_jack_add_kctl
.subsections_via_symbols
