	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_write                  ## -- Begin function cx18_av_write
	.p2align	4, 0x90
_cx18_av_write:                         ## @cx18_av_write
	.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	%rdx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	leal	12845056(%rsi), %r15d
	andl	$-4, %r15d
	leal	(,%rsi,8), %r12d
	movl	%r15d, %esi
	callq	_cx18_read_reg
	movl	$255, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	shll	%cl, %ebx
	orl	%edx, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_cx18_write_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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                  ; -- Begin function cx18_av_write
	.p2align	2
_cx18_av_write:                         ; @cx18_av_write
	.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	x19, x2
	mov	x20, x0
	add	w8, w1, #3136, lsl #12          ; =12845056
	and	w21, w8, #0xfffffffc
	ubfiz	w22, w1, #3, #2
	mov	x1, x21
	bl	_cx18_read_reg
	mov	w8, #255
	lsl	w8, w8, w22
	bic	w8, w0, w8
	lsl	w9, w19, w22
	orr	w1, w8, w9
	mov	x0, x20
	mov	x2, x21
	bl	_cx18_write_reg
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
