	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx3_camera_set_fmt
_mx3_camera_set_fmt:                    ## @mx3_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	%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, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_soc_camera_host
	movq	(%rax), %r13
	movq	%r14, %rdi
	callq	_soc_camera_to_subdev
	movq	%rax, %r12
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_soc_camera_xlate_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rdi
	callq	_stride_align
	movl	(%r14), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	%r13, %rdi
	callq	_acquire_dma_channel
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_configure_geometry
	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
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	4(%r15), %eax
	movl	%eax, 8(%r14)
	movl	(%r15), %eax
	movl	%eax, 4(%r14)
LBB0_6:
	movl	(%r14), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_7
LBB0_1:
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format %x not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Set format %dx%d\n"

	.comm	_video,4,2                      ## @video
	.comm	_s_fmt,4,2                      ## @s_fmt
L_.str.2:                               ## @.str.2
	.asciz	"Sensor set %dx%d\n"

	.no_dead_strip	_mx3_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 mx3_camera_set_fmt
_mx3_camera_set_fmt:                    ; @mx3_camera_set_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]
	bl	_to_soc_camera_host
	ldr	x23, [x0]
	mov	x0, x20
	bl	_soc_camera_to_subdev
	mov	x22, x0
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_soc_camera_xlate_by_fourcc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x0, x19, #4
	bl	_stride_align
	ldr	w0, [x20]
	ldp	w3, w2, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x23
	bl	_acquire_dma_channel
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldp	w2, w1, [x19]
	mov	x0, x23
	bl	_configure_geometry
Lloh2:
	adrp	x8, _video@GOTPAGE
Lloh3:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _s_fmt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_fmt@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x19
	bl	_v4l2_subdev_call
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	d0, [x21]
	stur	d0, [x20, #4]
LBB0_4:
	ldr	w0, [x20]
	ldp	w3, w2, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20]
	ldr	w2, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_6:
	mov	x24, x0
LBB0_7:
	mov	x0, x24
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format %x not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Set format %dx%d\n"

	.comm	_video,4,2                      ; @video
	.comm	_s_fmt,4,2                      ; @s_fmt
l_.str.2:                               ; @.str.2
	.asciz	"Sensor set %dx%d\n"

	.no_dead_strip	_mx3_camera_set_fmt
.subsections_via_symbols
