	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_correct_pin_ctl        ## -- Begin function snd_hda_correct_pin_ctl
	.p2align	4, 0x90
_snd_hda_correct_pin_ctl:               ## @snd_hda_correct_pin_ctl
	.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
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	callq	_snd_hda_query_pin_caps
	testl	%eax, %eax
	je	LBB0_21
## %bb.3:
	movl	%eax, %r14d
	movq	_AC_PINCTL_OUT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_9
## %bb.4:
	movq	_AC_PINCAP_OUT@GOTPCREL(%rip), %rdx
	movq	_AC_PINCTL_HP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, (%rdx)
	je	LBB0_5
## %bb.6:
	testl	%r15d, %eax
	je	LBB0_9
## %bb.7:
	movq	_AC_PINCAP_HP_DRV@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_5:
	orl	%ecx, %eax
LBB0_8:
	notl	%eax
	andl	%eax, %r15d
LBB0_9:
	movq	_AC_PINCTL_IN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_21
## %bb.10:
	movq	_AC_PINCAP_IN@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_11
## %bb.12:
	movq	_AC_PINCAP_VREF@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_AC_PINCAP_VREF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %r14d
	movq	_AC_PINCTL_VREFEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%r15d, %r13d
	leaq	_snd_hda_correct_pin_ctl.cap_lists(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_20
## %bb.13:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%rbx,%r12,8), %r13d
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r12
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx,%r12,8), %r13d
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%r14d, 4(%rbx,%r12,8)
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	cmpq	%rax, %r12
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_AC_PINCTL_VREF_HIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_19
LBB0_20:
	movq	_AC_PINCTL_VREFEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	orl	%r13d, %r15d
	jmp	LBB0_21
LBB0_11:
	movq	_AC_PINCTL_VREFEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @snd_hda_correct_pin_ctl.cap_lists
_snd_hda_correct_pin_ctl.cap_lists:
	.long	131                             ## 0x83
	.long	135                             ## 0x87
	.long	129                             ## 0x81
	.long	133                             ## 0x85
	.long	130                             ## 0x82
	.long	134                             ## 0x86
	.long	128                             ## 0x80
	.long	132                             ## 0x84

	.comm	_AC_PINCTL_OUT_EN,4,2           ## @AC_PINCTL_OUT_EN
	.comm	_AC_PINCAP_OUT,4,2              ## @AC_PINCAP_OUT
	.comm	_AC_PINCTL_HP_EN,4,2            ## @AC_PINCTL_HP_EN
	.comm	_AC_PINCAP_HP_DRV,4,2           ## @AC_PINCAP_HP_DRV
	.comm	_AC_PINCTL_IN_EN,4,2            ## @AC_PINCTL_IN_EN
	.comm	_AC_PINCAP_IN,4,2               ## @AC_PINCAP_IN
	.comm	_AC_PINCTL_VREFEN,4,2           ## @AC_PINCTL_VREFEN
	.comm	_AC_PINCAP_VREF,4,2             ## @AC_PINCAP_VREF
	.comm	_AC_PINCAP_VREF_SHIFT,4,2       ## @AC_PINCAP_VREF_SHIFT
	.comm	_AC_PINCTL_VREF_HIZ,4,2         ## @AC_PINCTL_VREF_HIZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_correct_pin_ctl        ; -- Begin function snd_hda_correct_pin_ctl
	.p2align	2
_snd_hda_correct_pin_ctl:               ; @snd_hda_correct_pin_ctl
	.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	x19, x2
	cbz	w2, LBB0_17
; %bb.1:
	bl	_snd_hda_query_pin_caps
	cbz	w0, LBB0_17
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _AC_PINCTL_OUT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_PINCTL_OUT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x9, _AC_PINCAP_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_PINCAP_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
Lloh6:
	adrp	x9, _AC_PINCTL_HP_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AC_PINCTL_HP_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w10, w20
	b.eq	LBB0_6
; %bb.4:
	tst	w9, w19
	b.eq	LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _AC_PINCAP_HP_DRV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_PINCAP_HP_DRV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	bic	w8, w19, w9
	csel	w19, w19, w8, ne
	b	LBB0_7
LBB0_6:
	orr	w8, w9, w8
	bic	w19, w19, w8
LBB0_7:
Lloh12:
	adrp	x8, _AC_PINCTL_IN_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC_PINCTL_IN_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_17
; %bb.8:
Lloh15:
	adrp	x9, _AC_PINCAP_IN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC_PINCAP_IN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_16
; %bb.9:
Lloh18:
	adrp	x8, _AC_PINCAP_VREF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AC_PINCAP_VREF@GOTPAGEOFF]
Lloh20:
	adrp	x9, _AC_PINCAP_VREF_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AC_PINCAP_VREF_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
Lloh23:
	ldr	w24, [x9]
Lloh24:
	adrp	x21, _AC_PINCTL_VREFEN@GOTPAGE
Lloh25:
	ldr	x21, [x21, _AC_PINCTL_VREFEN@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w22, w8, w19
Lloh26:
	adrp	x0, _snd_hda_correct_pin_ctl.cap_lists@PAGE
Lloh27:
	add	x0, x0, _snd_hda_correct_pin_ctl.cap_lists@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x23, #0
	and	w8, w25, w20
	lsr	w24, w8, w24
Lloh28:
	adrp	x25, _snd_hda_correct_pin_ctl.cap_lists@PAGE+8
Lloh29:
	add	x25, x25, _snd_hda_correct_pin_ctl.cap_lists@PAGEOFF+8
Lloh30:
	adrp	x20, _snd_hda_correct_pin_ctl.cap_lists@PAGE
Lloh31:
	add	x20, x20, _snd_hda_correct_pin_ctl.cap_lists@PAGEOFF
Lloh32:
	adrp	x26, _AC_PINCTL_VREF_HIZ@GOTPAGE
Lloh33:
	ldr	x26, [x26, _AC_PINCTL_VREF_HIZ@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x25, x25, #8
	cmp	x23, w0, sxtw
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x25, #-8]
	cmp	w22, w8
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w8, [x25, #-4]
	tst	w8, w24
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	x23, x8
	csel	x8, x26, x25, eq
	ldr	w22, [x8]
	b	LBB0_11
LBB0_15:
	ldr	w8, [x21]
	bic	w8, w19, w8
	orr	w19, w8, w22
	b	LBB0_17
LBB0_16:
Lloh34:
	adrp	x9, _AC_PINCTL_VREFEN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _AC_PINCTL_VREFEN@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w19, w19, w8
LBB0_17:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @snd_hda_correct_pin_ctl.cap_lists
_snd_hda_correct_pin_ctl.cap_lists:
	.long	131                             ; 0x83
	.long	135                             ; 0x87
	.long	129                             ; 0x81
	.long	133                             ; 0x85
	.long	130                             ; 0x82
	.long	134                             ; 0x86
	.long	128                             ; 0x80
	.long	132                             ; 0x84

	.comm	_AC_PINCTL_OUT_EN,4,2           ; @AC_PINCTL_OUT_EN
	.comm	_AC_PINCAP_OUT,4,2              ; @AC_PINCAP_OUT
	.comm	_AC_PINCTL_HP_EN,4,2            ; @AC_PINCTL_HP_EN
	.comm	_AC_PINCAP_HP_DRV,4,2           ; @AC_PINCAP_HP_DRV
	.comm	_AC_PINCTL_IN_EN,4,2            ; @AC_PINCTL_IN_EN
	.comm	_AC_PINCAP_IN,4,2               ; @AC_PINCAP_IN
	.comm	_AC_PINCTL_VREFEN,4,2           ; @AC_PINCTL_VREFEN
	.comm	_AC_PINCAP_VREF,4,2             ; @AC_PINCAP_VREF
	.comm	_AC_PINCAP_VREF_SHIFT,4,2       ; @AC_PINCAP_VREF_SHIFT
	.comm	_AC_PINCTL_VREF_HIZ,4,2         ; @AC_PINCTL_VREF_HIZ
.subsections_via_symbols
