	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_s_fmt
_client_s_fmt:                          ## @client_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_soc_camera_to_subdev
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_video@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_cropcap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rdi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	-96(%rbp), %edi
	movl	$2560, %esi                     ## imm = 0xA00
	callq	_min
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-92(%rbp), %edi
	movl	$1920, %esi                     ## imm = 0x780
	callq	_min
	movl	%eax, %r13d
	movl	(%r14), %esi
	movq	_s_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	12(%rbx), %edx
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_geo
	movl	12(%rbx), %r14d
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.3:
	xorl	%r12d, %r12d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %r15d
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_9
	jmp	LBB0_15
LBB0_6:
	movl	%eax, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.8:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	seta	%al
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	seta	%cl
	orb	%al, %cl
	xorl	%r12d, %r12d
	cmpb	$1, %cl
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r13d, %r15d
	jae	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%r14d, %r14d
	movl	%r14d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r14d
	addl	%r15d, %r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %r15d
	movl	%r14d, 12(%rbx)
	movl	%eax, 16(%rbx)
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %r12d
	movl	12(%rbx), %edx
	movl	16(%rbx), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_geo
	testl	%r12d, %r12d
	jns	LBB0_9
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_video,4,2                      ## @video
	.comm	_cropcap,4,2                    ## @cropcap
	.comm	_s_fmt,4,2                      ## @s_fmt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camera scaled to %ux%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Camera scaled to %ux%u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Client failed to set format: %d\n"

	.no_dead_strip	_client_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_s_fmt
_client_s_fmt:                          ; @client_s_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	bl	_soc_camera_to_subdev
	mov	x21, x0
	ldr	x20, [x20]
	ldp	w28, w27, [x19, #12]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh3:
	adrp	x25, _video@GOTPAGE
Lloh4:
	ldr	x25, [x25, _video@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh5:
	adrp	x8, _cropcap@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cropcap@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w0, [sp, #8]
	mov	w1, #2560
	bl	_min
	mov	x22, x0
	ldr	w0, [sp, #12]
	mov	w1, #1920
	bl	_min
	mov	x23, x0
	ldr	w1, [x25]
Lloh8:
	adrp	x8, _s_fmt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_fmt@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldp	w2, w3, [x19, #12]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_geo
	ldr	w25, [x19, #12]
	cmp	w28, w25
	b.ne	LBB0_6
; %bb.3:
	mov	w26, #0
	cbz	w24, LBB0_12
; %bb.4:
	ldr	w24, [x19, #16]
	cmp	w27, w24
	b.ne	LBB0_8
	b	LBB0_12
LBB0_5:
	mov	x26, x0
	b	LBB0_12
LBB0_6:
	cbz	w24, LBB0_11
; %bb.7:
	ldr	w24, [x19, #16]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, w24
	ccmp	w28, w25, #2, ls
	ccmp	w25, w22, #2, hi
	ccmp	w24, w23, #2, lo
	b.hs	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	w0, w25, #1
	mov	x1, x22
	bl	_min
	mov	x25, x0
	lsl	w0, w24, #1
	mov	x1, x23
	bl	_min
	mov	x24, x0
	stp	w25, w0, [x19, #12]
Lloh13:
	adrp	x8, _video@GOTPAGE
Lloh14:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _s_fmt@GOTPAGE
Lloh17:
	ldr	x8, [x8, _s_fmt@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_v4l2_subdev_call
	mov	x26, x0
	ldp	w2, w3, [x19, #12]
	mov	x0, x20
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_geo
	tbz	w26, #31, LBB0_8
; %bb.10:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	w26, #0
LBB0_12:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_video,4,2                      ; @video
	.comm	_cropcap,4,2                    ; @cropcap
	.comm	_s_fmt,4,2                      ; @s_fmt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camera scaled to %ux%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Camera scaled to %ux%u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Client failed to set format: %d\n"

	.no_dead_strip	_client_s_fmt
.subsections_via_symbols
