	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pin_power_state
_set_pin_power_state:                   ## @set_pin_power_state
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %r12d
	movq	_AC_DEFCFG_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r12d, %r15d
	movq	_AC_DEFCFG_MISC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %r15d
	movq	_AC_DEFCFG_MISC_NO_PRESENCE@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	(%rbx), %rax
	xorl	%r13d, %r13d
	orl	(%rax), %r15d
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_snd_hda_jack_detect
	movl	%eax, %r13d
LBB0_2:
	movq	%rbx, %rdi
	callq	_smart51_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_is_smart51_pins
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:
	movl	%r12d, %edi
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %r12
	orl	%r13d, %r15d
	je	LBB0_7
## %bb.5:
	callq	_get_defcfg_connect
	movq	_AC_JACK_PORT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_6:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_7:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_power_state             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_DEFCFG_MISC,4,2             ## @AC_DEFCFG_MISC
	.comm	_AC_DEFCFG_MISC_SHIFT,4,2       ## @AC_DEFCFG_MISC_SHIFT
	.comm	_AC_DEFCFG_MISC_NO_PRESENCE,4,2 ## @AC_DEFCFG_MISC_NO_PRESENCE
	.comm	_AC_JACK_PORT_NONE,8,3          ## @AC_JACK_PORT_NONE
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.comm	_AC_PWRST_D3,4,2                ## @AC_PWRST_D3
	.no_dead_strip	_set_pin_power_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pin_power_state
_set_pin_power_state:                   ; @set_pin_power_state
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_snd_hda_codec_get_pincfg
	mov	x22, x0
Lloh0:
	adrp	x8, _AC_DEFCFG_MISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_DEFCFG_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _AC_DEFCFG_MISC_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_DEFCFG_MISC_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AC_DEFCFG_MISC_NO_PRESENCE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AC_DEFCFG_MISC_NO_PRESENCE@GOTPAGEOFF]
	lsr	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	and	w8, w8, w9
	ldr	x9, [x20]
	ldr	w9, [x9]
	orr	w24, w9, w8
	cbz	w24, LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_snd_hda_jack_detect
	mov	x23, x0
LBB0_3:
	mov	x0, x20
	bl	_smart51_enabled
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_is_smart51_pins
	cbnz	x0, LBB0_8
LBB0_5:
	orr	w8, w24, w23
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_get_defcfg_connect
Lloh9:
	adrp	x8, _AC_JACK_PORT_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_JACK_PORT_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _AC_PWRST_D3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC_PWRST_D3@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _AC_PWRST_D0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC_PWRST_D0@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x21]
LBB0_9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_update_power_state
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_DEFCFG_MISC,4,2             ; @AC_DEFCFG_MISC
	.comm	_AC_DEFCFG_MISC_SHIFT,4,2       ; @AC_DEFCFG_MISC_SHIFT
	.comm	_AC_DEFCFG_MISC_NO_PRESENCE,4,2 ; @AC_DEFCFG_MISC_NO_PRESENCE
	.comm	_AC_JACK_PORT_NONE,8,3          ; @AC_JACK_PORT_NONE
	.comm	_AC_PWRST_D0,4,2                ; @AC_PWRST_D0
	.comm	_AC_PWRST_D3,4,2                ; @AC_PWRST_D3
	.no_dead_strip	_set_pin_power_state
.subsections_via_symbols
