	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpf_put
_hpf_put:                               ## @hpf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	8(%r14), %rbx
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_WM8785_R2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %r12d
	movq	_WM8785_HPFR@GOTPCREL(%rip), %rax
	movq	_WM8785_HPFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%ebx, %eax
	notl	%eax
	andl	%r12d, %eax
	movq	(%r15), %rcx
	orl	%r12d, %ebx
	cmpq	$0, (%rcx)
	cmovel	%eax, %ebx
	cmpl	%r12d, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wm8785_write
LBB0_2:
	xorl	%r15d, %r15d
	cmpl	%r12d, %ebx
	setne	%r15b
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8785_R2,8,3                  ## @WM8785_R2
	.comm	_WM8785_HPFR,4,2                ## @WM8785_HPFR
	.comm	_WM8785_HPFL,4,2                ## @WM8785_HPFL
	.no_dead_strip	_hpf_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpf_put
_hpf_put:                               ; @hpf_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
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x21, [x19, #8]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WM8785_R2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8785_R2@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	ldr	x1, [x8]
	ldr	w21, [x9, x1, lsl #2]
Lloh3:
	adrp	x8, _WM8785_HPFR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8785_HPFR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WM8785_HPFL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WM8785_HPFL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w9, w21, w8
	ldr	x10, [x20]
	ldr	x10, [x10]
	orr	w8, w8, w21
	cmp	x10, #0
	csel	w20, w9, w8, eq
	cmp	w20, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x2, x20
	bl	_wm8785_write
LBB0_2:
	cmp	w20, w21
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8785_R2,8,3                  ; @WM8785_R2
	.comm	_WM8785_HPFR,4,2                ; @WM8785_HPFR
	.comm	_WM8785_HPFL,4,2                ; @WM8785_HPFL
	.no_dead_strip	_hpf_put
.subsections_via_symbols
