	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov13858_set_pad_format
_ov13858_set_pad_format:                ## @ov13858_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, %r12
	callq	_to_ov13858
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	8(%rbx), %r15
	movq	_MEDIA_BUS_FMT_SGRBG10_1X10@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r15)
LBB0_2:
	movq	_supported_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	_width@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_height@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	16(%rbx), %r9d
	movl	20(%rbx), %r8d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_v4l2_find_nearest_size
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ov13858_update_pad_format
	movq	(%rbx), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	24(%rbx), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_v4l2_subdev_get_try_format
	movups	(%r15), %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_5
LBB0_4:
	movq	%r14, 8(%r13)
	movl	24(%r13), %edi
	movq	(%r14), %rsi
	callq	___v4l2_ctrl_s_ctrl
	movq	_link_freq_menu_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_link_freq_to_pixel_rate
	movl	20(%r13), %edi
	movq	%rax, %rsi
	callq	___v4l2_ctrl_s_ctrl_int64
	movq	8(%r13), %rax
	movq	8(%rax), %rbx
	movq	16(%rax), %rcx
	subq	%rcx, %rbx
	movq	24(%rax), %rsi
	subq	%rcx, %rsi
	movl	16(%r13), %edi
	movq	_OV13858_VTS_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rcx, %rdx
	movl	$1, %ecx
	movq	%rbx, %r8
	callq	___v4l2_ctrl_modify_range
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	callq	___v4l2_ctrl_s_ctrl
	movq	_link_freq_configs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	8(%r13), %rax
	subq	32(%rax), %rdx
	movl	4(%r13), %edi
	movq	%rdx, %rsi
	movl	$1, %ecx
	movq	%rdx, %r8
	callq	___v4l2_ctrl_modify_range
LBB0_5:
	movq	%r13, %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	_MEDIA_BUS_FMT_SGRBG10_1X10,8,3 ## @MEDIA_BUS_FMT_SGRBG10_1X10
	.comm	_supported_modes,4,2            ## @supported_modes
	.comm	_width,4,2                      ## @width
	.comm	_height,4,2                     ## @height
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_link_freq_menu_items,8,3       ## @link_freq_menu_items
	.comm	_OV13858_VTS_MAX,8,3            ## @OV13858_VTS_MAX
	.comm	_link_freq_configs,8,3          ## @link_freq_configs
	.no_dead_strip	_ov13858_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 ov13858_set_pad_format
_ov13858_set_pad_format:                ; @ov13858_set_pad_format
	.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	x23, x2
	mov	x21, x1
	mov	x22, x0
	bl	_to_ov13858
	mov	x19, x0
	bl	_mutex_lock
	mov	x24, x23
	ldr	x9, [x24, #8]!
Lloh0:
	adrp	x8, _MEDIA_BUS_FMT_SGRBG10_1X10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_BUS_FMT_SGRBG10_1X10@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
	str	x8, [x24]
LBB0_2:
Lloh3:
	adrp	x8, _supported_modes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _supported_modes@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh6:
	adrp	x8, _width@GOTPAGE
Lloh7:
	ldr	x8, [x8, _width@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _height@GOTPAGE
Lloh10:
	ldr	x8, [x8, _height@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldp	w5, w4, [x23, #16]
	mov	x0, x20
	bl	_v4l2_find_nearest_size
	mov	x20, x0
	mov	x1, x23
	bl	_ov13858_update_pad_format
	ldr	x8, [x23]
Lloh12:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w2, [x23, #24]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_subdev_get_try_format
	ldr	q0, [x24]
	str	q0, [x0]
	b	LBB0_5
LBB0_4:
	str	x20, [x19, #8]
	ldr	w0, [x19, #24]
	ldr	x1, [x20]
	bl	___v4l2_ctrl_s_ctrl
Lloh15:
	adrp	x8, _link_freq_menu_items@GOTPAGE
Lloh16:
	ldr	x8, [x8, _link_freq_menu_items@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_link_freq_to_pixel_rate
	mov	x1, x0
	ldr	w0, [x19, #20]
	bl	___v4l2_ctrl_s_ctrl_int64
	ldr	x8, [x19, #8]
	ldp	x9, x10, [x8, #8]
	sub	x21, x9, x10
	ldr	x8, [x8, #24]
	sub	x1, x8, x10
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x8, _OV13858_VTS_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OV13858_VTS_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sub	x2, x8, x10
	mov	w3, #1
	mov	x4, x21
	bl	___v4l2_ctrl_modify_range
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	___v4l2_ctrl_s_ctrl
Lloh21:
	adrp	x8, _link_freq_configs@GOTPAGE
Lloh22:
	ldr	x8, [x8, _link_freq_configs@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #32]
	sub	x1, x8, x9
	ldr	w0, [x19, #4]
	mov	x2, x1
	mov	w3, #1
	mov	x4, x1
	bl	___v4l2_ctrl_modify_range
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,8,3 ; @MEDIA_BUS_FMT_SGRBG10_1X10
	.comm	_supported_modes,4,2            ; @supported_modes
	.comm	_width,4,2                      ; @width
	.comm	_height,4,2                     ; @height
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_link_freq_menu_items,8,3       ; @link_freq_menu_items
	.comm	_OV13858_VTS_MAX,8,3            ; @OV13858_VTS_MAX
	.comm	_link_freq_configs,8,3          ; @link_freq_configs
	.no_dead_strip	_ov13858_set_pad_format
.subsections_via_symbols
