	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_s_selection
_saa7134_s_selection:                   ## @saa7134_s_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_V4L2_BUF_TYPE_VIDEO_OVERLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_4:
	movq	8(%rbx), %rax
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	cmpq	$0, 8(%r14)
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rax
	addq	$16, %rax
	movups	16(%rbx), %xmm0
	movups	32(%rbx), %xmm1
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	movq	16(%r14), %rdx
	movq	48(%r14), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_10
## %bb.9:
	movq	%rcx, (%rax)
	movq	%rcx, %rdx
LBB0_10:
	movq	56(%r14), %rsi
	leaq	(%rsi,%rcx), %rdi
	cmpq	%rdi, %rdx
	jle	LBB0_12
## %bb.11:
	movq	%rdi, (%rax)
	movq	%rdi, %rdx
LBB0_12:
	subq	%rdx, %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, 24(%r14)
	jle	LBB0_14
## %bb.13:
	movq	%rcx, 24(%r14)
LBB0_14:
	movq	32(%r14), %rdx
	movq	64(%r14), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_16
## %bb.15:
	movq	%rcx, 32(%r14)
	movq	%rcx, %rdx
LBB0_16:
	movq	72(%r14), %rsi
	leaq	(%rsi,%rcx), %rdi
	cmpq	%rdi, %rdx
	jle	LBB0_18
## %bb.17:
	movq	%rdi, 32(%r14)
	movq	%rdi, %rdx
LBB0_18:
	addq	$16, %rbx
	subq	%rdx, %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, 40(%r14)
	jle	LBB0_20
## %bb.19:
	movq	%rcx, 40(%r14)
LBB0_20:
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OVERLAY,8,3 ## @V4L2_BUF_TYPE_VIDEO_OVERLAY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_saa7134_s_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_s_selection
_saa7134_s_selection:                   ; @saa7134_s_selection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	bl	_video_drvdata
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_OVERLAY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_OVERLAY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_vb2_is_streaming
	cbz	x0, LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x8, x19, #16
	ldp	q0, q1, [x20, #16]
	stp	q0, q1, [x8]
	ldr	x10, [x19, #16]
	ldr	x9, [x19, #48]
	cmp	x10, x9
	b.ge	LBB0_10
; %bb.9:
	str	x9, [x8]
	mov	x10, x9
LBB0_10:
	ldr	x11, [x19, #56]
	add	x12, x11, x9
	cmp	x10, x12
	b.le	LBB0_12
; %bb.11:
	str	x12, [x8]
	mov	x10, x12
LBB0_12:
	ldr	x12, [x19, #24]
	sub	x9, x9, x10
	add	x9, x9, x11
	cmp	x12, x9
	b.le	LBB0_14
; %bb.13:
	str	x9, [x19, #24]
LBB0_14:
	ldr	x10, [x19, #32]
	ldr	x9, [x19, #64]
	cmp	x10, x9
	b.ge	LBB0_16
; %bb.15:
	str	x9, [x19, #32]
	mov	x10, x9
LBB0_16:
	ldr	x11, [x19, #72]
	add	x12, x11, x9
	cmp	x10, x12
	b.le	LBB0_18
; %bb.17:
	str	x12, [x19, #32]
	mov	x10, x12
LBB0_18:
	add	x12, x20, #16
	ldr	x13, [x19, #40]
	sub	x9, x9, x10
	add	x9, x9, x11
	cmp	x13, x9
	b.le	LBB0_20
; %bb.19:
	str	x9, [x19, #40]
LBB0_20:
	mov	w0, #0
	ldp	q0, q1, [x8]
	stp	q0, q1, [x12]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OVERLAY,8,3 ; @V4L2_BUF_TYPE_VIDEO_OVERLAY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_saa7134_s_selection
.subsections_via_symbols
