	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_fmt
_vidioc_s_fmt:                          ## @vidioc_s_fmt
	.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	%rsi, %r12
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	movl	(%rsi), %esi
	callq	_v4l2_m2m_get_vq
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_get_q_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r15
	movl	(%r12), %edi
	leal	-128(%rdi), %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_21:
	movb	$1, %r13b
	cmpl	$0, 4(%r14)
	je	LBB0_27
## %bb.22:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_V4L2_TYPE_IS_OUTPUT
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:
	movl	(%rax), %eax
	cmpl	24(%r12), %eax
	jne	LBB0_27
## %bb.25:
	movl	12(%r15), %eax
	cmpl	20(%r12), %eax
	jne	LBB0_27
## %bb.26:
	movl	8(%r15), %eax
	cmpl	16(%r12), %eax
	setne	%r13b
LBB0_27:
	movq	%rbx, %rdi
	callq	_vb2_is_busy
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	testb	%r13b, %r13b
	jne	LBB0_14
LBB0_29:
	movl	24(%r12), %edi
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_31
## %bb.30:
	movq	_pixfmt_fwht@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movb	$1, %r13b
	cmpl	$0, 4(%r14)
	je	LBB0_12
## %bb.7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_V4L2_TYPE_IS_OUTPUT
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	(%rax), %eax
	cmpl	44(%r12), %eax
	jne	LBB0_12
## %bb.10:
	movl	12(%r15), %eax
	cmpl	40(%r12), %eax
	jne	LBB0_12
## %bb.11:
	movl	8(%r15), %eax
	cmpl	36(%r12), %eax
	setne	%r13b
LBB0_12:
	movq	%rbx, %rdi
	callq	_vb2_is_busy
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	testb	%r13b, %r13b
	je	LBB0_15
LBB0_14:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_15:
	movl	44(%r12), %edi
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_17
## %bb.16:
	movq	_pixfmt_fwht@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_31:
	movq	_V4L2_PIX_FMT_FWHT_STATELESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_33
## %bb.32:
	movq	_pixfmt_stateless_fwht@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_17:
	movq	_V4L2_PIX_FMT_FWHT_STATELESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_19
## %bb.18:
	movq	_pixfmt_stateless_fwht@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_33:
	callq	_find_fmt
LBB0_34:
	movq	%rax, (%r15)
	movl	20(%r12), %ecx
	movl	%ecx, 12(%r15)
	movl	16(%r12), %r8d
	movl	%r8d, 8(%r15)
	movq	8(%r12), %rdx
	jmp	LBB0_35
LBB0_19:
	callq	_find_fmt
LBB0_20:
	movq	%rax, (%r15)
	leaq	32(%r12), %rdx
	movl	40(%r12), %ecx
	movl	%ecx, 12(%r15)
	movl	36(%r12), %r8d
	movl	%r8d, 8(%r15)
LBB0_35:
	movl	(%rdx), %edx
	movl	%edx, 16(%r15)
	movl	(%r14), %edi
	movl	(%r12), %edx
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	callq	_dprintk
	xorl	%eax, %eax
	jmp	LBB0_36
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_6
	.long	L0_0_set_21
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_PIX_FMT_FWHT,4,2          ## @V4L2_PIX_FMT_FWHT
	.comm	_pixfmt_fwht,4,2                ## @pixfmt_fwht
	.comm	_V4L2_PIX_FMT_FWHT_STATELESS,4,2 ## @V4L2_PIX_FMT_FWHT_STATELESS
	.comm	_pixfmt_stateless_fwht,4,2      ## @pixfmt_stateless_fwht
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting format for type %d, coded wxh: %dx%d, fourcc: 0x%08x\n"

	.no_dead_strip	_vidioc_s_fmt
.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
_vidioc_s_fmt:                          ; @vidioc_s_fmt
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x1]
	bl	_v4l2_m2m_get_vq
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	w1, [x19]
	mov	x0, x20
	bl	_get_q_data
	cbz	x0, LBB0_10
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19]
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_19
; %bb.5:
	bl	_V4L2_TYPE_IS_OUTPUT
	cbz	w0, LBB0_19
; %bb.6:
	ldr	x8, [x21]
	cbz	x8, LBB0_19
; %bb.7:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.8:
	ldr	w8, [x21, #12]
	ldr	w9, [x19, #20]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.9:
	ldr	w8, [x21, #8]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	cset	w23, ne
	b	LBB0_20
LBB0_10:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_24
; %bb.14:
	bl	_V4L2_TYPE_IS_OUTPUT
	cbz	w0, LBB0_24
; %bb.15:
	ldr	x8, [x21]
	cbz	x8, LBB0_24
; %bb.16:
	ldr	w8, [x8]
	ldr	w9, [x19, #44]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.17:
	ldr	w8, [x21, #12]
	ldr	w9, [x19, #40]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.18:
	ldr	w8, [x21, #8]
	ldr	w9, [x19, #36]
	cmp	w8, w9
	cset	w23, ne
	b	LBB0_25
LBB0_19:
	mov	w23, #1
LBB0_20:
	mov	x0, x22
	bl	_vb2_is_busy
	cbz	w0, LBB0_22
; %bb.21:
	cbnz	w23, LBB0_27
LBB0_22:
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x8, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_30
; %bb.23:
Lloh7:
	adrp	x0, _pixfmt_fwht@GOTPAGE
Lloh8:
	ldr	x0, [x0, _pixfmt_fwht@GOTPAGEOFF]
	b	LBB0_35
LBB0_24:
	mov	w23, #1
LBB0_25:
	mov	x0, x22
	bl	_vb2_is_busy
	cbz	w0, LBB0_28
; %bb.26:
	cbz	w23, LBB0_28
LBB0_27:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_28:
	ldr	w0, [x19, #44]
Lloh11:
	adrp	x8, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_32
; %bb.29:
Lloh14:
	adrp	x0, _pixfmt_fwht@GOTPAGE
Lloh15:
	ldr	x0, [x0, _pixfmt_fwht@GOTPAGEOFF]
	b	LBB0_37
LBB0_30:
Lloh16:
	adrp	x8, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_34
; %bb.31:
Lloh19:
	adrp	x0, _pixfmt_stateless_fwht@GOTPAGE
Lloh20:
	ldr	x0, [x0, _pixfmt_stateless_fwht@GOTPAGEOFF]
	b	LBB0_35
LBB0_32:
Lloh21:
	adrp	x8, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_PIX_FMT_FWHT_STATELESS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_36
; %bb.33:
Lloh24:
	adrp	x0, _pixfmt_stateless_fwht@GOTPAGE
Lloh25:
	ldr	x0, [x0, _pixfmt_stateless_fwht@GOTPAGEOFF]
	b	LBB0_37
LBB0_34:
	bl	_find_fmt
LBB0_35:
	str	x0, [x21]
	ldp	w4, w3, [x19, #16]
	stp	w4, w3, [x21, #8]
	ldr	x8, [x19, #8]
	b	LBB0_38
LBB0_36:
	bl	_find_fmt
LBB0_37:
	str	x0, [x21]
	add	x8, x19, #32
	ldp	w4, w3, [x19, #36]
	stp	w4, w3, [x21, #8]
LBB0_38:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	w8, [x20]
	ldr	w2, [x19]
	ldr	w5, [x0]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dprintk
	mov	w0, #0
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_PIX_FMT_FWHT,4,2          ; @V4L2_PIX_FMT_FWHT
	.comm	_pixfmt_fwht,4,2                ; @pixfmt_fwht
	.comm	_V4L2_PIX_FMT_FWHT_STATELESS,4,2 ; @V4L2_PIX_FMT_FWHT_STATELESS
	.comm	_pixfmt_stateless_fwht,4,2      ; @pixfmt_stateless_fwht
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting format for type %d, coded wxh: %dx%d, fourcc: 0x%08x\n"

	.no_dead_strip	_vidioc_s_fmt
.subsections_via_symbols
