	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_jack_add_kctls         ## -- Begin function snd_hda_jack_add_kctls
	.p2align	4, 0x90
_snd_hda_jack_add_kctls:                ## @snd_hda_jack_add_kctls
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, (%rsi)
	jle	LBB0_10
## %bb.1:
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	88(%r15), %rax
	cmpq	$0, 8(%rax,%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_auto_cfg_hp_outs
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_auto_cfg_hp_pins
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %rax
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	shlq	$4, %rax
	addq	88(%r15), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_add_jack_kctl
	testl	%eax, %eax
	js	LBB0_30
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_10:
	cmpl	$0, 16(%r15)
	jle	LBB0_14
## %bb.11:
	movq	8(%r15), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_jack_kctl
	testl	%eax, %eax
	js	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpl	16(%r15), %ebx
	jl	LBB0_12
LBB0_14:
	cmpl	$0, 32(%r15)
	jle	LBB0_19
## %bb.15:
	movq	24(%r15), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rsi
	movq	8(%r15), %rax
	cmpq	(%rax), %rsi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_jack_kctl
	testl	%eax, %eax
	js	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpl	32(%r15), %ebx
	jl	LBB0_16
LBB0_19:
	cmpl	$0, 48(%r15)
	jle	LBB0_24
## %bb.20:
	movq	40(%r15), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rsi
	movq	8(%r15), %rax
	cmpq	(%rax), %rsi
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_jack_kctl
	testl	%eax, %eax
	js	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	cmpl	48(%r15), %ebx
	jl	LBB0_21
LBB0_24:
	cmpl	$0, 64(%r15)
	jle	LBB0_28
## %bb.25:
	movq	56(%r15), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_jack_kctl
	testl	%eax, %eax
	js	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rbx
	cmpl	64(%r15), %ebx
	jl	LBB0_26
LBB0_28:
	movq	72(%r15), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_jack_kctl
	testl	%eax, %eax
	js	LBB0_30
## %bb.29:
	movq	80(%r15), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_jack_kctl
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Headphone Mic"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_jack_add_kctls         ; -- Begin function snd_hda_jack_add_kctls
	.p2align	2
_snd_hda_jack_add_kctls:                ; @snd_hda_jack_add_kctls
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x21, #0
	mov	w22, #8
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #88]
	ldr	x9, [x8, x22]
	cbz	x9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_auto_cfg_hp_outs
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_auto_cfg_hp_pins
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x3, #0
	add	x8, x8, x22
	sub	x0, x8, #8
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #88]
	add	x0, x8, x21, lsl #4
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x3, x23
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x0]
	mov	x0, x20
	mov	x2, x19
	bl	_add_jack_kctl
	tbnz	w0, #31, LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #16
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_10:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x21, #0
	ldr	x22, [x19, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21, lsl #3]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_add_jack_kctl
	tbnz	w0, #31, LBB0_30
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19, #16]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_12
LBB0_14:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x21, #0
	ldr	x22, [x19, #24]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21, lsl #3]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_add_jack_kctl
	tbnz	w0, #31, LBB0_30
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #32]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_16
LBB0_19:
	ldr	w8, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.20:
	mov	x21, #0
	ldr	x22, [x19, #40]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21, lsl #3]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_add_jack_kctl
	tbnz	w0, #31, LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x19, #48]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_21
LBB0_24:
	ldr	w8, [x19, #64]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.25:
	mov	x21, #0
	ldr	x22, [x19, #56]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21, lsl #3]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_add_jack_kctl
	tbnz	w0, #31, LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x19, #64]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_26
LBB0_28:
	ldr	x1, [x19, #72]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_add_jack_kctl
	tbnz	w0, #31, LBB0_30
; %bb.29:
	ldr	x1, [x19, #80]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_add_jack_kctl
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_30:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Headphone Mic"

.subsections_via_symbols
