	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zr364xx_prepare
_zr364xx_prepare:                       ## @zr364xx_prepare
	.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	%rdi, %r14
	movq	_init@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rdi), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %r9d
	cmpl	$-1, %r9d
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rdi
	movl	4(%rax,%rbx), %r8d
	movl	8(%rax,%rbx), %edx
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_send_control_msg
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	12(%rax,%rbx), %r9d
	incl	%r15d
	addq	$12, %rbx
	cmpl	$-1, %r9d
	jne	LBB0_2
LBB0_5:
	movabsq	$-4294967294, %rax              ## imm = 0xFFFFFFFF00000002
	movq	%rax, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movq	_FRAMES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.6:
	movq	24(%r14), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	movq	_ZR364XX_READ_IDLE@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx)
	movq	$0, -8(%rcx)
	incq	%rdx
	movslq	(%rax), %rdi
	addq	$16, %rcx
	cmpq	%rdi, %rdx
	jl	LBB0_7
LBB0_8:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_setup
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %r13d
	movq	48(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init,8,3                       ## @init
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error during open sequence: %d\n"

	.comm	_FRAMES,4,2                     ## @FRAMES
	.comm	_ZR364XX_READ_IDLE,4,2          ## @ZR364XX_READ_IDLE
	.no_dead_strip	_zr364xx_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function zr364xx_prepare
lCPI0_0:
	.long	2                               ; 0x2
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_zr364xx_prepare:                       ; @zr364xx_prepare
	.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, x0
Lloh0:
	adrp	x22, _init@GOTPAGE
Lloh1:
	ldr	x22, [x22, _init@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w5, [x8]
	cmn	w5, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #48]
	add	x8, x8, x23
	ldp	w4, w2, [x8, #4]
	mov	w1, #1
	mov	w3, #0
	bl	_send_control_msg
	tbnz	w0, #31, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	add	x9, x8, x23
	ldr	w5, [x9, #12]
	add	w20, w20, #1
	add	x23, x23, #12
	cmn	w5, #1
	b.ne	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	stp	xzr, xzr, [x19, #32]
Lloh4:
	adrp	x8, _FRAMES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FRAMES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x9, #0
	ldr	x10, [x19, #24]
	add	x10, x10, #8
Lloh6:
	adrp	x11, _ZR364XX_READ_IDLE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ZR364XX_READ_IDLE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10]
	stur	xzr, [x10, #-8]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	add	x10, x10, #16
	cmp	x9, x12
	b.lt	LBB0_6
LBB0_7:
	add	x0, x19, #16
	bl	_v4l2_ctrl_handler_setup
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	mov	x21, x0
	ldr	x0, [x19, #48]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_init,8,3                       ; @init
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error during open sequence: %d\n"

	.comm	_FRAMES,4,2                     ; @FRAMES
	.comm	_ZR364XX_READ_IDLE,4,2          ; @ZR364XX_READ_IDLE
	.no_dead_strip	_zr364xx_prepare
.subsections_via_symbols
