	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_in_jack_mode
_create_in_jack_mode:                   ## @create_in_jack_mode
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	xorl	%r14d, %r14d
	cmpq	%rsi, (%r15)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_snd_hda_get_input_pin_attr
	movq	_INPUT_PIN_ATTR_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_get_in_jack_num_items
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.3:
	leaq	-96(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$44, %ecx
	callq	_get_jack_mode_name
	movq	_in_jack_mode_enum@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_snd_hda_gen_add_kctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, (%rax)
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_PIN_ATTR_INT,8,3         ## @INPUT_PIN_ATTR_INT
	.comm	_in_jack_mode_enum,4,2          ## @in_jack_mode_enum
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_create_in_jack_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_in_jack_mode
_create_in_jack_mode:                   ; @create_in_jack_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0]
	ldr	x8, [x20]
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_snd_hda_codec_get_pincfg
	bl	_snd_hda_get_input_pin_attr
Lloh3:
	adrp	x8, _INPUT_PIN_ATTR_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INPUT_PIN_ATTR_INT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_get_in_jack_num_items
	cmp	w0, #2
	b.ge	LBB0_6
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	mov	w3, #44
	bl	_get_jack_mode_name
Lloh9:
	adrp	x2, _in_jack_mode_enum@GOTPAGE
Lloh10:
	ldr	x2, [x2, _in_jack_mode_enum@GOTPAGEOFF]
	add	x1, sp, #12
	mov	x0, x20
	bl	_snd_hda_gen_add_kctl
	cbz	x0, LBB0_8
; %bb.7:
	mov	x8, x0
	mov	w0, #0
	str	x19, [x8]
	b	LBB0_4
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_PIN_ATTR_INT,8,3         ; @INPUT_PIN_ATTR_INT
	.comm	_in_jack_mode_enum,4,2          ; @in_jack_mode_enum
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_create_in_jack_mode
.subsections_via_symbols
