	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alc_subsystem_id
_alc_subsystem_id:                      ## @alc_subsystem_id
	.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	$24, %rsp
	.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, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	cmpq	$0, 48(%r12)
	je	LBB0_2
## %bb.1:
	movl	40(%r12), %ebx
	movq	_ALC_FIXUP_SKU_IGNORE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %ebx
	jne	LBB0_6
	jmp	LBB0_19
LBB0_2:
	movl	(%r15), %eax
	testb	$1, %al
	je	LBB0_4
## %bb.3:
	movzwl	%ax, %ebx
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
LBB0_4:
	cmpl	$283902560, 4(%r15)             ## imm = 0x10EC0260
	movl	$23, %eax
	movl	$29, %r14d
	cmovel	%eax, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_snd_printd
	movl	%ebx, %eax
	andl	$-1073741823, %eax              ## imm = 0xC0000001
	xorl	%r14d, %r14d
	cmpl	$1073741825, %eax               ## imm = 0x40000001
	jne	LBB0_19
## %bb.5:
	movl	%ebx, %eax
	shrl	%eax
	andl	$1, %eax
	movl	%ebx, %ecx
	shrl	$2, %ecx
	andl	$1, %ecx
	btl	$3, %ebx
	adcl	%eax, %ecx
	movl	%ebx, %eax
	shrl	$4, %eax
	andl	$1, %eax
	btl	$5, %ebx
	adcl	%ecx, %eax
	movl	%ebx, %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	btl	$7, %ebx
	adcl	%eax, %ecx
	movl	%ebx, %eax
	shrl	$8, %eax
	andl	$1, %eax
	btl	$9, %ebx
	adcl	%ecx, %eax
	movl	%ebx, %ecx
	shrl	$10, %ecx
	andl	$1, %ecx
	btl	$11, %ebx
	adcl	%eax, %ecx
	movl	%ebx, %eax
	shrl	$12, %eax
	andl	$1, %eax
	btl	$13, %ebx
	adcl	%ecx, %eax
	movl	%ebx, %ecx
	shrl	$14, %ecx
	andl	$1, %ecx
	btl	$15, %ebx
	adcl	%eax, %ecx
	movl	%ebx, %eax
	shrl	$16, %eax
	andl	$15, %eax
	cmpl	%ecx, %eax
	jne	LBB0_19
LBB0_6:
	movzwl	%bx, %esi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_snd_printd
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	$7, %eax
	decl	%eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.8:
	cltq
	leaq	l_switch.table.alc_subsystem_id(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ALC_INIT_DEFAULT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	$1, %r14d
	testl	$32768, %ebx                    ## imm = 0x8000
	je	LBB0_19
## %bb.10:
	movq	8(%r12), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.11:
	movq	24(%r12), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_13
## %bb.12:
	movq	(%r12), %rax
	movq	_AUTO_PIN_HP_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
LBB0_13:
	shrl	$11, %ebx
	andl	$3, %ebx
	je	LBB0_17
## %bb.14:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	cmpl	$2, %ebx
	je	LBB0_17
## %bb.15:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	cmpl	$1, %ebx
	je	LBB0_17
## %bb.16:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_17:
	movl	16(%r12), %edx
	movl	%r13d, %edi
	callq	_found_in_nid_list
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	8(%r12), %rax
	movl	%r13d, (%rax)
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALC_FIXUP_SKU_IGNORE,4,2       ## @ALC_FIXUP_SKU_IGNORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realtek: No valid SSID, checking pincfg 0x%08x for NID 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"realtek: Enabling init ASM_ID=0x%04x CODEC_ID=%08x\n"

	.comm	_ALC_INIT_GPIO1,4,2             ## @ALC_INIT_GPIO1
	.comm	_ALC_INIT_GPIO2,4,2             ## @ALC_INIT_GPIO2
	.comm	_ALC_INIT_GPIO3,4,2             ## @ALC_INIT_GPIO3
	.comm	_ALC_INIT_DEFAULT,4,2           ## @ALC_INIT_DEFAULT
	.comm	_AUTO_PIN_HP_OUT,8,3            ## @AUTO_PIN_HP_OUT
	.no_dead_strip	_alc_subsystem_id
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.alc_subsystem_id
l_switch.table.alc_subsystem_id:
	.quad	_ALC_INIT_GPIO1
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_GPIO2
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_GPIO3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function alc_subsystem_id
lCPI0_0:
	.long	4294967289                      ; 0xfffffff9
	.long	4294967290                      ; 0xfffffffa
	.long	4294967291                      ; 0xfffffffb
	.long	4294967292                      ; 0xfffffffc
lCPI0_1:
	.long	4294967281                      ; 0xfffffff1
	.long	4294967282                      ; 0xfffffff2
	.long	4294967283                      ; 0xfffffff3
	.long	4294967284                      ; 0xfffffff4
lCPI0_2:
	.long	4294967285                      ; 0xfffffff5
	.long	4294967286                      ; 0xfffffff6
	.long	4294967287                      ; 0xfffffff7
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_alc_subsystem_id:                      ; @alc_subsystem_id
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x24, x0
	ldr	x26, [x0, #16]
	ldr	x8, [x26, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w23, [x26, #40]
Lloh0:
	adrp	x8, _ALC_FIXUP_SKU_IGNORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALC_FIXUP_SKU_IGNORE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_6
	b	LBB0_8
LBB0_2:
	ldr	w8, [x24]
	tbz	w8, #0, LBB0_4
; %bb.3:
	and	w23, w8, #0xffff
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_6
LBB0_4:
	ldr	w8, [x24, #4]
	mov	w9, #608
	movk	w9, #4332, lsl #16
	mov	w10, #29
	mov	w11, #23
	cmp	w8, w9
	csel	w25, w11, w10, eq
	mov	x0, x24
	mov	x1, x25
	bl	_snd_hda_codec_get_pincfg
	mov	x23, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x25
	bl	_snd_printd
	and	w8, w23, #0xc0000001
	mov	w9, #1
	movk	w9, #16384, lsl #16
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	ubfx	w8, w23, #1, #1
	ubfx	w9, w23, #2, #1
	ubfx	w10, w23, #3, #1
	dup.4s	v0, w23
Lloh5:
	adrp	x11, lCPI0_0@PAGE
Lloh6:
	ldr	q1, [x11, lCPI0_0@PAGEOFF]
	ushl.4s	v1, v0, v1
	movi.4s	v2, #1
	and.16b	v1, v1, v2
Lloh7:
	adrp	x11, lCPI0_1@PAGE
Lloh8:
	ldr	q3, [x11, lCPI0_1@PAGEOFF]
	ushl.4s	v3, v0, v3
Lloh9:
	adrp	x11, lCPI0_2@PAGE
Lloh10:
	ldr	q4, [x11, lCPI0_2@PAGEOFF]
	ushl.4s	v0, v0, v4
	and.16b	v0, v0, v2
	and.16b	v2, v3, v2
	add.4s	v0, v2, v0
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w11, s0
	add	w10, w11, w10
	add	w9, w10, w9
	ubfx	w10, w23, #16, #4
	add	w8, w9, w8
	cmp	w10, w8
	b.ne	LBB0_8
LBB0_6:
	and	w1, w23, #0xffff
	ldr	w2, [x24, #4]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printd
	ubfx	x8, x23, #3, #3
	sub	x8, x8, #1
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.7:
Lloh13:
	adrp	x9, l_switch.table.alc_subsystem_id@PAGE
Lloh14:
	add	x9, x9, l_switch.table.alc_subsystem_id@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_17
LBB0_9:
Lloh15:
	adrp	x8, _ALC_INIT_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ALC_INIT_DEFAULT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x26, #32]
	tbz	w23, #15, LBB0_16
; %bb.11:
	ldr	x8, [x26, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_16
; %bb.12:
	ldr	x1, [x26, #24]
	ldr	x8, [x1]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x26]
Lloh17:
	adrp	x9, _AUTO_PIN_HP_OUT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AUTO_PIN_HP_OUT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_14:
	ubfx	w8, w23, #11, #2
	cmp	w8, #1
	csel	w9, w21, w22, ne
	cmp	w8, #2
	csel	w9, w20, w9, eq
	cmp	w8, #0
	csel	w19, w19, w9, eq
	ldr	w2, [x26, #16]
	mov	x0, x19
	bl	_found_in_nid_list
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x26, #8]
	str	w19, [x8]
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ALC_FIXUP_SKU_IGNORE,4,2       ; @ALC_FIXUP_SKU_IGNORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realtek: No valid SSID, checking pincfg 0x%08x for NID 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"realtek: Enabling init ASM_ID=0x%04x CODEC_ID=%08x\n"

	.comm	_ALC_INIT_GPIO1,4,2             ; @ALC_INIT_GPIO1
	.comm	_ALC_INIT_GPIO2,4,2             ; @ALC_INIT_GPIO2
	.comm	_ALC_INIT_GPIO3,4,2             ; @ALC_INIT_GPIO3
	.comm	_ALC_INIT_DEFAULT,4,2           ; @ALC_INIT_DEFAULT
	.comm	_AUTO_PIN_HP_OUT,8,3            ; @AUTO_PIN_HP_OUT
	.no_dead_strip	_alc_subsystem_id
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.alc_subsystem_id
l_switch.table.alc_subsystem_id:
	.quad	_ALC_INIT_GPIO1
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_GPIO2
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_DEFAULT
	.quad	_ALC_INIT_GPIO3

.subsections_via_symbols
