	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_apply_geo
_bttv_apply_geo:                        ## @bttv_apply_geo
	.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	%rsi, %r14
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	shll	$7, %eax
	cmpq	$0, 40(%rsi)
	movq	_BT848_VSCALE_COMB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	je	LBB0_2
## %bb.1:
	movq	_BT848_E_VSCALE_HI@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	callq	_btor
	jmp	LBB0_3
LBB0_2:
	notl	%edi
	movq	_BT848_E_VSCALE_HI@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	callq	_btand
LBB0_3:
	movl	(%r14), %edi
	movq	_BT848_E_VTC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movl	4(%r14), %edi
	sarl	$8, %edi
	movq	_BT848_E_HSCALE_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movzbl	4(%r14), %edi
	movq	_BT848_E_HSCALE_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movl	8(%r14), %edi
	sarl	$8, %edi
	movq	_BT848_E_VSCALE_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movl	$224, %esi
	callq	_btaor
	movzbl	8(%r14), %edi
	movq	_BT848_E_VSCALE_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movzbl	12(%r14), %edi
	movq	_BT848_E_HACTIVE_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movzbl	16(%r14), %edi
	movq	_BT848_E_HDELAY_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movzbl	20(%r14), %edi
	movq	_BT848_E_VACTIVE_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movzbl	24(%r14), %edi
	movq	_BT848_E_VDELAY_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_btwrite
	movl	28(%r14), %edi
	movq	_BT848_E_CROP@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_btwrite
	movl	32(%r14), %edi
	sarl	$8, %edi
	movq	_BT848_VTOTAL_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_btwrite
	movzbl	32(%r14), %edi
	movq	_BT848_VTOTAL_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_btwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT848_VSCALE_COMB,4,2          ## @BT848_VSCALE_COMB
	.comm	_BT848_E_VSCALE_HI,8,3          ## @BT848_E_VSCALE_HI
	.comm	_BT848_E_VTC,8,3                ## @BT848_E_VTC
	.comm	_BT848_E_HSCALE_HI,8,3          ## @BT848_E_HSCALE_HI
	.comm	_BT848_E_HSCALE_LO,8,3          ## @BT848_E_HSCALE_LO
	.comm	_BT848_E_VSCALE_LO,8,3          ## @BT848_E_VSCALE_LO
	.comm	_BT848_E_HACTIVE_LO,8,3         ## @BT848_E_HACTIVE_LO
	.comm	_BT848_E_HDELAY_LO,8,3          ## @BT848_E_HDELAY_LO
	.comm	_BT848_E_VACTIVE_LO,8,3         ## @BT848_E_VACTIVE_LO
	.comm	_BT848_E_VDELAY_LO,8,3          ## @BT848_E_VDELAY_LO
	.comm	_BT848_E_CROP,8,3               ## @BT848_E_CROP
	.comm	_BT848_VTOTAL_HI,8,3            ## @BT848_VTOTAL_HI
	.comm	_BT848_VTOTAL_LO,8,3            ## @BT848_VTOTAL_LO
	.no_dead_strip	_bttv_apply_geo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_apply_geo
_bttv_apply_geo:                        ; @bttv_apply_geo
	.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, x1
	cmp	w2, #0
	cset	w8, ne
	lsl	w20, w8, #7
	ldr	x8, [x1, #40]
Lloh0:
	adrp	x9, _BT848_VSCALE_COMB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BT848_VSCALE_COMB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x21, _BT848_E_VSCALE_HI@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BT848_E_VSCALE_HI@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	add	x1, x8, x20
	bl	_btor
	b	LBB0_3
LBB0_2:
	mvn	w0, w0
	ldr	x8, [x21]
	add	x1, x8, x20
	bl	_btand
LBB0_3:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _BT848_E_VTC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT848_E_VTC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldr	w8, [x19, #4]
	asr	w0, w8, #8
Lloh8:
	adrp	x8, _BT848_E_HSCALE_HI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BT848_E_HSCALE_HI@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldrb	w0, [x19, #4]
Lloh11:
	adrp	x8, _BT848_E_HSCALE_LO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT848_E_HSCALE_LO@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldr	w8, [x19, #8]
	asr	w0, w8, #8
	ldr	x8, [x21]
	add	x2, x8, x20
	mov	w1, #224
	bl	_btaor
	ldrb	w0, [x19, #8]
Lloh14:
	adrp	x8, _BT848_E_VSCALE_LO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BT848_E_VSCALE_LO@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldrb	w0, [x19, #12]
Lloh17:
	adrp	x8, _BT848_E_HACTIVE_LO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BT848_E_HACTIVE_LO@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldrb	w0, [x19, #16]
Lloh20:
	adrp	x8, _BT848_E_HDELAY_LO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BT848_E_HDELAY_LO@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldrb	w0, [x19, #20]
Lloh23:
	adrp	x8, _BT848_E_VACTIVE_LO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BT848_E_VACTIVE_LO@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldrb	w0, [x19, #24]
Lloh26:
	adrp	x8, _BT848_E_VDELAY_LO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BT848_E_VDELAY_LO@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldr	w0, [x19, #28]
Lloh29:
	adrp	x8, _BT848_E_CROP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BT848_E_CROP@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_btwrite
	ldr	w8, [x19, #32]
	asr	w0, w8, #8
Lloh32:
	adrp	x8, _BT848_VTOTAL_HI@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BT848_VTOTAL_HI@GOTPAGEOFF]
Lloh34:
	ldr	x1, [x8]
	bl	_btwrite
	ldrb	w0, [x19, #32]
Lloh35:
	adrp	x8, _BT848_VTOTAL_LO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BT848_VTOTAL_LO@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
	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
	b	_btwrite
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BT848_VSCALE_COMB,4,2          ; @BT848_VSCALE_COMB
	.comm	_BT848_E_VSCALE_HI,8,3          ; @BT848_E_VSCALE_HI
	.comm	_BT848_E_VTC,8,3                ; @BT848_E_VTC
	.comm	_BT848_E_HSCALE_HI,8,3          ; @BT848_E_HSCALE_HI
	.comm	_BT848_E_HSCALE_LO,8,3          ; @BT848_E_HSCALE_LO
	.comm	_BT848_E_VSCALE_LO,8,3          ; @BT848_E_VSCALE_LO
	.comm	_BT848_E_HACTIVE_LO,8,3         ; @BT848_E_HACTIVE_LO
	.comm	_BT848_E_HDELAY_LO,8,3          ; @BT848_E_HDELAY_LO
	.comm	_BT848_E_VACTIVE_LO,8,3         ; @BT848_E_VACTIVE_LO
	.comm	_BT848_E_VDELAY_LO,8,3          ; @BT848_E_VDELAY_LO
	.comm	_BT848_E_CROP,8,3               ; @BT848_E_CROP
	.comm	_BT848_VTOTAL_HI,8,3            ; @BT848_VTOTAL_HI
	.comm	_BT848_VTOTAL_LO,8,3            ; @BT848_VTOTAL_LO
	.no_dead_strip	_bttv_apply_geo
.subsections_via_symbols
