	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxt5051_update_speaker
_cxt5051_update_speaker:                ## @cxt5051_update_speaker
	.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
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rbx)
	movl	$0, %edx
	je	LBB0_3
## %bb.1:
	xorl	%edx, %edx
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_PIN_HP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_snd_hda_set_pin_ctl
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
## %bb.4:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_PIN_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	movq	%r15, %rdi
	movl	$26, %esi
	movl	%r14d, %edx
	callq	_snd_hda_set_pin_ctl
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	movl	$27, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_set_pin_ctl            ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_HP,4,2                     ## @PIN_HP
	.comm	_PIN_OUT,4,2                    ## @PIN_OUT
	.no_dead_strip	_cxt5051_update_speaker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxt5051_update_speaker
_cxt5051_update_speaker:                ; @cxt5051_update_speaker
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _PIN_HP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIN_HP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
	mov	x0, x19
	mov	w1, #22
	bl	_snd_hda_set_pin_ctl
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _PIN_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIN_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w20, wzr, w9, eq
LBB0_6:
	mov	x0, x19
	mov	w1, #26
	mov	x2, x20
	bl	_snd_hda_set_pin_ctl
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #27
	mov	x2, x20
	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
	b	_snd_hda_set_pin_ctl
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_HP,4,2                     ; @PIN_HP
	.comm	_PIN_OUT,4,2                    ; @PIN_OUT
	.no_dead_strip	_cxt5051_update_speaker
.subsections_via_symbols
