	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chip_write_masked
_chip_write_masked:                     ## @chip_write_masked
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.1:
	movl	%ecx, %r12d
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.3:
	leal	1(%r14), %r13d
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jge	LBB0_7
## %bb.4:
	movl	%r13d, %eax
	shlq	$2, %rax
	addq	(%r15), %rax
	jmp	LBB0_5
LBB0_2:
	movq	(%r15), %rax
	addq	$4, %rax
LBB0_5:
	movl	(%rax), %eax
	xorl	%eax, %ebx
	andl	%r12d, %ebx
	xorl	%eax, %ebx
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chip_write                     ## TAILCALL
LBB0_7:
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_v4l2_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tried to access a non-existent register: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_chip_write_masked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chip_write_masked
_chip_write_masked:                     ; @chip_write_masked
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	cbz	w3, LBB0_6
; %bb.1:
	mov	x22, x3
	tbnz	w19, #31, LBB0_4
; %bb.2:
	add	w23, w19, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_7
; %bb.3:
	ldr	x8, [x21]
	add	x8, x8, w23, uxtw #2
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21]
	add	x8, x8, #4
LBB0_5:
	ldr	w8, [x8]
	bic	w8, w8, w22
	and	w9, w22, w20
	orr	w20, w8, w9
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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
	b	_chip_write
LBB0_7:
	add	x0, x21, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_v4l2_info
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tried to access a non-existent register: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_chip_write_masked
.subsections_via_symbols
