	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_hp_mic_jack_mode
_create_hp_mic_jack_mode:               ## @create_hp_mic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_get_out_jack_num_items
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_get_in_jack_num_items
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	_hp_mic_jack_mode_enum@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_snd_hda_gen_add_kctl
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	%r15d, (%rax)
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Headphone Mic Jack Mode"

	.comm	_hp_mic_jack_mode_enum,4,2      ## @hp_mic_jack_mode_enum
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_create_hp_mic_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_hp_mic_jack_mode
_create_hp_mic_jack_mode:               ; @create_hp_mic_jack_mode
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
	bl	_get_out_jack_num_items
	cmp	w0, #1
	b.gt	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_get_in_jack_num_items
	cmp	w0, #2
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, _hp_mic_jack_mode_enum@GOTPAGE
Lloh3:
	ldr	x2, [x2, _hp_mic_jack_mode_enum@GOTPAGEOFF]
	mov	x0, x19
	bl	_snd_hda_gen_add_kctl
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	str	w20, [x8]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Headphone Mic Jack Mode"

	.comm	_hp_mic_jack_mode_enum,4,2      ; @hp_mic_jack_mode_enum
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_create_hp_mic_jack_mode
.subsections_via_symbols
