	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_volume_offset_put
_hp_volume_offset_put:                  ## @hp_volume_offset_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), %rax
	movslq	(%rax), %rax
	cmpq	$3, %rax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	(%rdi), %r14
	movq	8(%r14), %r13
	leaq	_hp_volume_offset_put.atts(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	cmpl	(%r13), %r15d
	setne	%r12b
	je	LBB0_5
## %bb.3:
	movl	%r15d, (%r13)
	cmpq	$0, 8(%r13)
	je	LBB0_5
## %bb.4:
	movq	_CS4245_DAC_A_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_cs4245_write_cached
	movq	_CS4245_DAC_B_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_cs4245_write_cached
LBB0_5:
	movb	%r12b, %bl
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @hp_volume_offset_put.atts
_hp_volume_offset_put.atts:
	.long	32                              ## 0x20
	.long	14                              ## 0xe
	.long	0                               ## 0x0

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CS4245_DAC_A_CTRL,4,2          ## @CS4245_DAC_A_CTRL
	.comm	_CS4245_DAC_B_CTRL,4,2          ## @CS4245_DAC_B_CTRL
	.no_dead_strip	_hp_volume_offset_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_volume_offset_put
_hp_volume_offset_put:                  ; @hp_volume_offset_put
	.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
	ldr	x8, [x1]
	ldrsw	x8, [x8]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	ldr	x19, [x0]
	ldr	x22, [x19, #8]
Lloh3:
	adrp	x9, _hp_volume_offset_put.atts@PAGE
Lloh4:
	add	x9, x9, _hp_volume_offset_put.atts@PAGEOFF
	ldr	w21, [x9, x8, lsl #2]
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x22]
	cmp	w21, w8
	cset	w20, ne
	b.eq	LBB0_5
; %bb.3:
	str	w21, [x22]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _CS4245_DAC_A_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CS4245_DAC_A_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_cs4245_write_cached
Lloh8:
	adrp	x8, _CS4245_DAC_B_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CS4245_DAC_B_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_cs4245_write_cached
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @hp_volume_offset_put.atts
_hp_volume_offset_put.atts:
	.long	32                              ; 0x20
	.long	14                              ; 0xe
	.long	0                               ; 0x0

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CS4245_DAC_A_CTRL,4,2          ; @CS4245_DAC_A_CTRL
	.comm	_CS4245_DAC_B_CTRL,4,2          ; @CS4245_DAC_B_CTRL
	.no_dead_strip	_hp_volume_offset_put
.subsections_via_symbols
