	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m920x_set_filter
_m920x_set_filter:                      ## @m920x_set_filter
	.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
	cmpl	$32768, %ecx                    ## imm = 0x8000
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%edx, %ebx
	movq	%rdi, %r14
	orl	$32768, %ecx                    ## imm = 0x8000
	movl	(%rdi), %edi
	movq	_M9206_FILTER@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shll	$8, %esi
	shll	$2, %ebx
	orl	%esi, %ebx
	movl	%eax, %esi
	movl	%ecx, %edx
	movl	%ebx, %ecx
	callq	_m920x_write
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m920x_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M9206_FILTER,4,2               ## @M9206_FILTER
	.no_dead_strip	_m920x_set_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m920x_set_filter
_m920x_set_filter:                      ; @m920x_set_filter
	.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
	cmp	w3, #8, lsl #12                 ; =32768
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	orr	w8, w3, #0x8000
	ldr	w0, [x0]
Lloh3:
	adrp	x21, _M9206_FILTER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _M9206_FILTER@GOTPAGEOFF]
	ldr	w9, [x21]
	lsl	w10, w2, #2
	orr	w20, w10, w1, lsl #8
	mov	x1, x9
	mov	x2, x8
	mov	x3, x20
	bl	_m920x_write
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	w2, #0
	mov	x3, 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	_m920x_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M9206_FILTER,4,2               ; @M9206_FILTER
	.no_dead_strip	_m920x_set_filter
.subsections_via_symbols
