	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_camera_set_fmt
_soc_camera_set_fmt:                    ## @soc_camera_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movl	8(%rdi), %edi
	callq	_to_soc_camera_host
	movq	%rax, %r12
	movq	8(%rbx), %rdi
	callq	_pixfmtstr
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_4
## %bb.6:
	movl	28(%rbx), %edx
	movl	%edx, 4(%r14)
	movl	24(%rbx), %ecx
	movl	%ecx, (%r14)
	movl	20(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	%eax, 16(%r14)
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_dev_warn
	movl	(%r14), %ecx
	movl	4(%r14), %edx
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S_FMT(%c%c%c%c, %ux%u)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Host driver hasn't set up current format correctly!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
L_.str.2:                               ## @.str.2
	.asciz	"Attention! Wrong buf-type %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"set width: %d height: %d\n"

	.no_dead_strip	_soc_camera_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_camera_set_fmt
_soc_camera_set_fmt:                    ; @soc_camera_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x21, x0
	ldr	w0, [x21, #8]!
	bl	_to_soc_camera_host
	mov	x22, x0
	ldr	x0, [x20, #8]
	bl	_pixfmtstr
	mov	x2, x0
	ldp	w8, w3, [x20, #24]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldp	w3, w2, [x20, #24]
	stp	w3, w2, [x19]
	ldr	d0, [x20, #16]
	str	s0, [x19, #12]
	str	d0, [x19, #16]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x8
	bl	_dev_warn
	ldp	w3, w2, [x19]
LBB0_6:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x22]
	ldr	x2, [x8, #16]
	ldr	x1, [x20, #8]
	mov	x0, x19
	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
	add	sp, sp, #64
	br	x2
LBB0_7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S_FMT(%c%c%c%c, %ux%u)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Host driver hasn't set up current format correctly!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
l_.str.2:                               ; @.str.2
	.asciz	"Attention! Wrong buf-type %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"set width: %d height: %d\n"

	.no_dead_strip	_soc_camera_set_fmt
.subsections_via_symbols
