	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ## @vidioc_s_fmt_vid_cap
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_vidioc_try_fmt_vid_cap
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	leaq	20(%r13), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	addq	$4, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movl	8(%r14), %eax
	movl	%eax, 16(%r13)
	movq	(%r14), %rax
	movq	%rax, 8(%r13)
	cmpl	$128, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	movl	12(%r13), %eax
	movl	16(%r13), %r14d
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	andl	$-2, %ecx
	shll	$15, %ecx
	addl	$-65536, %ecx                   ## imm = 0xFFFF0000
	leal	(%r14,%r14), %r15d
	decl	%r15d
	orl	%ecx, %r15d
	shll	$2, %r14d
	movl	%r15d, %r12d
	jmp	LBB0_11
LBB0_10:
	movl	12(%r13), %r15d
	movl	16(%r13), %r14d
	shll	$16, %r15d
	addl	$-65536, %r15d                  ## imm = 0xFFFF0000
	leal	(%r14,%r14), %r12d
	decl	%r12d
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	addl	%r14d, %r14d
	orl	%r12d, %r15d
	jmp	LBB0_11
LBB0_8:
	movl	12(%r13), %r12d
	movl	16(%r13), %r14d
	leal	(%r14,%r14), %r15d
	decl	%r15d
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	addl	%r14d, %r14d
	shll	$16, %r12d
	orl	%r15d, %r12d
LBB0_11:
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movq	_DVP_TFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_reg_write
	movq	_DVP_BFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_reg_write
	movq	_DVP_TFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_reg_write
	movq	_DVP_BFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_reg_write
	movq	_DVP_VMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_reg_write
	movq	%r13, %rdi
	callq	_spin_unlock_irq
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	addq	$4, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"unknown field format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DVP_TFO,4,2                    ## @DVP_TFO
	.comm	_DVP_BFO,4,2                    ## @DVP_BFO
	.comm	_DVP_TFS,4,2                    ## @DVP_TFS
	.comm	_DVP_BFS,4,2                    ## @DVP_BFS
	.comm	_DVP_VMP,4,2                    ## @DVP_VMP
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_fmt_vid_cap
_vidioc_s_fmt_vid_cap:                  ; @vidioc_s_fmt_vid_cap
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_video_drvdata
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_vidioc_try_fmt_vid_cap
	cbnz	w0, LBB0_11
; %bb.1:
	add	x0, x19, #20
	bl	_vb2_is_busy
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, x19, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	ldr	x8, [x20]
	ldr	w9, [x20, #8]
	str	w9, [x19, #16]
	str	x8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.7:
	ldp	w8, w9, [x19, #12]
	cmp	w8, #0
	cinc	w8, w8, lt
	lsl	w8, w8, #15
	and	w8, w8, #0xffff0000
	sub	w8, w8, #16, lsl #12            ; =65536
	lsl	w10, w9, #1
	sub	w10, w10, #1
	orr	w22, w8, w10
	lsl	w20, w9, #2
	mov	x21, x22
	b	LBB0_10
LBB0_8:
	ldp	w8, w9, [x19, #12]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	lsl	w20, w9, #1
	sub	w21, w20, #1
	orr	w22, w21, w8
	b	LBB0_10
LBB0_9:
	ldp	w9, w8, [x19, #12]
	lsl	w20, w8, #1
	sub	w22, w20, #1
	orr	w21, w22, w9, lsl #16
LBB0_10:
	mov	x0, x19
	bl	_spin_lock_irq
Lloh4:
	adrp	x8, _DVP_TFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DVP_TFO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_write
Lloh7:
	adrp	x8, _DVP_BFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DVP_BFO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_write
Lloh10:
	adrp	x8, _DVP_TFS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DVP_TFS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_reg_write
Lloh13:
	adrp	x8, _DVP_BFS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DVP_BFS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_reg_write
Lloh16:
	adrp	x8, _DVP_VMP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DVP_VMP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_reg_write
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
LBB0_11:
	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_12:
	add	x0, x19, #4
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_v4l2_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"unknown field format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DVP_TFO,4,2                    ; @DVP_TFO
	.comm	_DVP_BFO,4,2                    ; @DVP_BFO
	.comm	_DVP_TFS,4,2                    ; @DVP_TFS
	.comm	_DVP_BFS,4,2                    ; @DVP_BFS
	.comm	_DVP_VMP,4,2                    ; @DVP_VMP
	.no_dead_strip	_vidioc_s_fmt_vid_cap
.subsections_via_symbols
