	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx355_set_pad_format
_imx355_set_pad_format:                 ## @imx355_set_pad_format
	.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	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_to_imx355
	movq	%rax, %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_imx355_get_format_code
	movl	%eax, 16(%rbx)
	movq	_supported_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	_width@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r8d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_v4l2_find_nearest_size
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_imx355_update_pad_format
	movq	(%rbx), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	20(%rbx), %edx
	addq	$8, %rbx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_v4l2_subdev_get_try_format
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_3
LBB0_2:
	movq	%r12, 16(%r15)
	movl	(%r15), %ebx
	shll	$3, %ebx
	movl	%ebx, %edi
	movl	$10, %esi
	callq	_do_div
	movl	28(%r15), %edi
	movl	%ebx, %esi
	callq	___v4l2_ctrl_s_ctrl_int64
	movq	16(%r15), %rax
	movq	32(%rax), %rcx
	movq	16(%rax), %rsi
	movq	24(%rax), %rbx
	subq	%rcx, %rbx
	subq	%rcx, %rsi
	movq	_IMX355_FLL_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rcx, %rdx
	movl	24(%r15), %edi
	movl	$1, %ecx
	movq	%rbx, %r8
	callq	___v4l2_ctrl_modify_range
	movl	24(%r15), %edi
	movq	%rbx, %rsi
	callq	___v4l2_ctrl_s_ctrl
	movq	8(%r12), %rdx
	movq	16(%r15), %rax
	subq	(%rax), %rdx
	movl	8(%r15), %edi
	movq	%rdx, %rsi
	movl	$1, %ecx
	movq	%rdx, %r8
	callq	___v4l2_ctrl_modify_range
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported_modes,4,2            ## @supported_modes
	.comm	_width,4,2                      ## @width
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_IMX355_FLL_MAX,8,3             ## @IMX355_FLL_MAX
	.no_dead_strip	_imx355_set_pad_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx355_set_pad_format
_imx355_set_pad_format:                 ; @imx355_set_pad_format
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
	bl	_to_imx355
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_imx355_get_format_code
	str	w0, [x24, #16]
Lloh0:
	adrp	x8, _supported_modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _supported_modes@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x25, x24
	ldr	w5, [x25, #8]!
Lloh3:
	adrp	x8, _width@GOTPAGE
Lloh4:
	ldr	x8, [x8, _width@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w4, [x24, #12]
	mov	x0, x22
	bl	_v4l2_find_nearest_size
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_imx355_update_pad_format
	ldr	x8, [x24]
Lloh6:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w2, [x24, #20]
	mov	x0, x23
	mov	x1, x21
	bl	_v4l2_subdev_get_try_format
	ldr	w8, [x25, #8]
	ldr	x9, [x25]
	str	x9, [x0]
	str	w8, [x0, #8]
	b	LBB0_3
LBB0_2:
	str	x22, [x20, #16]
	ldr	w8, [x20]
	lsl	w21, w8, #3
	mov	x0, x21
	mov	w1, #10
	bl	_do_div
	ldr	w0, [x20, #28]
	mov	x1, x21
	bl	___v4l2_ctrl_s_ctrl_int64
	ldr	x8, [x20, #16]
	ldp	x10, x9, [x8, #24]
	ldr	x8, [x8, #16]
	sub	x21, x10, x9
	sub	x1, x8, x9
Lloh9:
	adrp	x8, _IMX355_FLL_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMX355_FLL_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x2, x8, x9
	ldr	w0, [x20, #24]
	mov	w3, #1
	mov	x4, x21
	bl	___v4l2_ctrl_modify_range
	ldr	w0, [x20, #24]
	mov	x1, x21
	bl	___v4l2_ctrl_s_ctrl
	ldr	x8, [x22, #8]
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	sub	x1, x8, x9
	ldr	w0, [x20, #8]
	mov	x2, x1
	mov	w3, #1
	mov	x4, x1
	bl	___v4l2_ctrl_modify_range
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_supported_modes,4,2            ; @supported_modes
	.comm	_width,4,2                      ; @width
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_IMX355_FLL_MAX,8,3             ; @IMX355_FLL_MAX
	.no_dead_strip	_imx355_set_pad_format
.subsections_via_symbols
