	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxac_vidioc_s_fmt_vid_cap
_pxac_vidioc_s_fmt_vid_cap:             ## @pxac_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
	subq	$24, %rsp
	.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, %r12
	callq	_video_drvdata
	movq	%rax, %r13
	movl	$0, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%r13, %rdi
	callq	_pcdev_to_dev
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movl	8(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	leaq	28(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 40(%r13)
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_7
LBB0_1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	32(%r13), %rdi
	callq	_vb2_is_busy
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	je	LBB0_2
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_pxac_vidioc_try_fmt_vid_cap
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	24(%r13), %edi
	movl	8(%r14), %esi
	callq	_pxa_mbus_xlate_by_fourcc
	movq	%rax, %r15
	movl	(%rax), %edx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v4l2_fill_mbus_format
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_sensor_call
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_pxa_camera_check_frame
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	%r13, %rdi
	callq	_pcdev_to_dev
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	%r13, %rdi
	callq	_pcdev_to_dev
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_5:
	movq	%r15, 16(%r13)
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movl	8(%r14), %eax
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_pxa_camera_set_bus_param
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_fmt_vid_cap(pix=%dx%d:%x)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
L_.str.1:                               ## @.str.1
	.asciz	"Failed to configure for format %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Camera driver produced an unsupported frame %dx%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pxac_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 pxac_vidioc_s_fmt_vid_cap
_pxac_vidioc_s_fmt_vid_cap:             ; @pxac_vidioc_s_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	bl	_pcdev_to_dev
	ldp	w3, w2, [x19]
	ldr	w4, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x23, x20, #28
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_3
LBB0_2:
	add	x0, x20, #32
	bl	_vb2_is_busy
	mov	x24, x0
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cbz	x24, LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_pxac_vidioc_try_fmt_vid_cap
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w0, [x20, #24]
	ldr	w1, [x19, #8]
	bl	_pxa_mbus_xlate_by_fourcc
	mov	x21, x0
	ldr	w2, [x0]
	add	x0, sp, #8
	mov	x1, x19
	bl	_v4l2_fill_mbus_format
Lloh7:
	adrp	x8, _pad@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _set_fmt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x3, #0
	bl	_sensor_call
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldp	w1, w0, [x19]
	bl	_pxa_camera_check_frame
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_pcdev_to_dev
	ldp	w8, w2, [x19]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	mov	x0, x20
	bl	_pcdev_to_dev
	ldr	w2, [x19, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_11:
	str	x21, [x20, #16]
	ldr	x8, [x19]
	ldr	w9, [x19, #8]
	str	w9, [x20, #8]
	str	x8, [x20]
	mov	x0, x20
	bl	_pxa_camera_set_bus_param
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_fmt_vid_cap(pix=%dx%d:%x)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
l_.str.1:                               ; @.str.1
	.asciz	"Failed to configure for format %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Camera driver produced an unsupported frame %dx%d\n"

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