	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_get_selection
_preview_get_selection:                 ## @preview_get_selection
	.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	%rdx, %rbx
	movq	%rsi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	(%rbx), %rdx
	movq	_PREV_PAD_SINK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	leaq	16(%rbx), %r12
	movq	$0, 32(%rbx)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	12(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	___preview_get_format
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_preview_try_crop
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	___preview_get_crop
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	16(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREV_PAD_SINK,8,3              ## @PREV_PAD_SINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_preview_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_get_selection
_preview_get_selection:                 ; @preview_get_selection
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x21, x1
	bl	_v4l2_get_subdevdata
	ldr	x2, [x19]
Lloh0:
	adrp	x8, _PREV_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREV_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #16]!
	stp	x8, xzr, [x19, #8]
	ldur	w3, [x19, #-4]
	mov	x0, x20
	mov	x1, x21
	bl	___preview_get_format
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_preview_try_crop
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w2, [x19, #12]
	mov	x0, x20
	mov	x1, x21
	bl	___preview_get_crop
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [x19, #16]
	str	x9, [x19, #32]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PREV_PAD_SINK,8,3              ; @PREV_PAD_SINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_preview_get_selection
.subsections_via_symbols
