	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_output_switch_put
_st_output_switch_put:                  ## @st_output_switch_put
	.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, %r12
	movq	(%rdi), %r15
	movq	8(%r15), %r13
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_oxygen_read16
	movl	%eax, %r14d
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$1, %eax
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_GPIO_ST_HP@GOTPCREL(%rip), %rax
	movq	_GPIO_ST_HP_REAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_GPIO_ST_HP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	movq	_GPIO_ST_HP_REAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_GPIO_ST_HP@GOTPCREL(%rip), %rax
	movq	_GPIO_ST_HP_REAR@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	orl	%ebx, %eax
	orl	(%rcx), %eax
	movl	%eax, %ebx
LBB0_6:
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_oxygen_write16
	movq	_GPIO_ST_HP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_update_pcm1796_volume
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	cmpl	%r14d, %ebx
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_GPIO_DATA,4,2           ## @OXYGEN_GPIO_DATA
	.comm	_GPIO_ST_HP,4,2                 ## @GPIO_ST_HP
	.comm	_GPIO_ST_HP_REAR,4,2            ## @GPIO_ST_HP_REAR
	.no_dead_strip	_st_output_switch_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_output_switch_put
_st_output_switch_put:                  ; @st_output_switch_put
	.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, x1
	ldr	x19, [x0]
	ldr	x22, [x19, #8]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _OXYGEN_GPIO_DATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OXYGEN_GPIO_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_oxygen_read16
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh2:
	adrp	x24, _GPIO_ST_HP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GPIO_ST_HP@GOTPAGEOFF]
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	mov	x21, x20
	cbnz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x24]
Lloh4:
	adrp	x9, _GPIO_ST_HP_REAR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GPIO_ST_HP_REAR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w21, w20, w8
	b	LBB0_6
LBB0_4:
	ldr	w8, [x24]
	orr	w8, w8, w20
Lloh7:
	adrp	x9, _GPIO_ST_HP_REAR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GPIO_ST_HP_REAR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w21, w8, w9
	b	LBB0_6
LBB0_5:
	ldr	w8, [x24]
Lloh10:
	adrp	x9, _GPIO_ST_HP_REAR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GPIO_ST_HP_REAR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w21, w8, w9
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_oxygen_write16
	ldr	w8, [x24]
	and	w8, w8, w21
	str	w8, [x22]
	mov	x0, x19
	bl	_update_pcm1796_volume
	mov	x0, x19
	bl	_mutex_unlock
	cmp	w21, w20
	cset	w0, ne
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_GPIO_DATA,4,2           ; @OXYGEN_GPIO_DATA
	.comm	_GPIO_ST_HP,4,2                 ; @GPIO_ST_HP
	.comm	_GPIO_ST_HP_REAR,4,2            ; @GPIO_ST_HP_REAR
	.no_dead_strip	_st_output_switch_put
.subsections_via_symbols
