	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_write_expect           ## -- Begin function cx18_av_write_expect
	.p2align	4, 0x90
_cx18_av_write_expect:                  ## @cx18_av_write_expect
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leal	12845056(%rsi), %r13d
	andl	$-4, %r13d
	leal	(,%rsi,8), %r12d
	movl	%r13d, %esi
	callq	_cx18_read_reg
	movl	$255, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	shll	%cl, %ebx
	andl	%eax, %edx
	shll	%cl, %r15d
	orl	%edx, %ebx
	shll	%cl, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_cx18_write_reg_expect
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_write_expect           ; -- Begin function cx18_av_write_expect
	.p2align	2
_cx18_av_write_expect:                  ; @cx18_av_write_expect
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	add	w8, w1, #3136, lsl #12          ; =12845056
	and	w23, w8, #0xfffffffc
	ubfiz	w24, w1, #3, #2
	mov	x1, x23
	bl	_cx18_read_reg
	mov	w8, #255
	lsl	w8, w8, w24
	lsl	w9, w21, w24
	bic	w8, w0, w8
	orr	w1, w8, w9
	lsl	w3, w20, w24
	lsl	w4, w19, w24
	mov	x0, x22
	mov	x2, x23
	bl	_cx18_write_reg_expect
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
