	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpg_recalc
_tpg_recalc:                            ## @tpg_recalc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rax
	movq	%rcx, 8(%rbx)
	movq	%rax, 24(%rbx)
	movl	72(%rbx), %edx
	movl	%edx, 76(%rbx)
	movq	48(%rbx), %rdx
	movq	%rdx, 40(%rbx)
	movq	_V4L2_XFER_FUNC_DEFAULT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movl	68(%rbx), %edi
	callq	_V4L2_MAP_XFER_FUNC_DEFAULT
	movq	%rax, 8(%rbx)
	movq	32(%rbx), %rax
LBB0_3:
	movq	_V4L2_YCBCR_ENC_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	68(%rbx), %edi
	callq	_V4L2_MAP_YCBCR_ENC_DEFAULT
	movq	%rax, 24(%rbx)
LBB0_5:
	movq	48(%rbx), %rax
	movq	_V4L2_QUANTIZATION_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	24(%rbx), %rdx
	movq	56(%rbx), %rax
	movq	_TGP_COLOR_ENC_YCBCR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	movl	68(%rbx), %esi
	callq	_V4L2_MAP_QUANTIZATION_DEFAULT
	movq	%rax, 40(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_tpg_precalculate_colors
LBB0_8:
	cmpl	$0, 64(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$0, 64(%rbx)
	movq	%rbx, %rdi
	callq	_tpg_calculate_square_border
LBB0_10:
	cmpl	$0, 4(%rbx)
	je	LBB0_11
## %bb.12:
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tpg_precalculate_line          ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_XFER_FUNC_DEFAULT,8,3     ## @V4L2_XFER_FUNC_DEFAULT
	.comm	_V4L2_YCBCR_ENC_DEFAULT,8,3     ## @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,8,3  ## @V4L2_QUANTIZATION_DEFAULT
	.comm	_TGP_COLOR_ENC_YCBCR,8,3        ## @TGP_COLOR_ENC_YCBCR
	.no_dead_strip	_tpg_recalc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tpg_recalc
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tpg_recalc:                            ; @tpg_recalc
	.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	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	x9, [x19, #16]
	str	x9, [x19, #8]
	ldr	x8, [x19, #32]
	str	x8, [x19, #24]
	ldr	w10, [x19, #72]
	str	w10, [x19, #76]
	ldr	x10, [x19, #48]
	str	x10, [x19, #40]
Lloh2:
	adrp	x10, _V4L2_XFER_FUNC_DEFAULT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _V4L2_XFER_FUNC_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #68]
	bl	_V4L2_MAP_XFER_FUNC_DEFAULT
	str	x0, [x19, #8]
	ldr	x8, [x19, #32]
LBB0_3:
Lloh5:
	adrp	x9, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #68]
	bl	_V4L2_MAP_YCBCR_ENC_DEFAULT
	str	x0, [x19, #24]
LBB0_5:
	ldr	x8, [x19, #48]
Lloh8:
	adrp	x9, _V4L2_QUANTIZATION_DEFAULT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_QUANTIZATION_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _TGP_COLOR_ENC_YCBCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TGP_COLOR_ENC_YCBCR@GOTPAGEOFF]
	ldr	x9, [x19, #56]
Lloh13:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, ne
	ldr	w1, [x19, #68]
	ldr	x2, [x19, #24]
	bl	_V4L2_MAP_QUANTIZATION_DEFAULT
	str	x0, [x19, #40]
LBB0_7:
	mov	x0, x19
	bl	_tpg_precalculate_colors
LBB0_8:
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_10
; %bb.9:
	str	wzr, [x19, #64]
	mov	x0, x19
	bl	_tpg_calculate_square_border
LBB0_10:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.11:
	str	wzr, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tpg_precalculate_line
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_XFER_FUNC_DEFAULT,8,3     ; @V4L2_XFER_FUNC_DEFAULT
	.comm	_V4L2_YCBCR_ENC_DEFAULT,8,3     ; @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,8,3  ; @V4L2_QUANTIZATION_DEFAULT
	.comm	_TGP_COLOR_ENC_YCBCR,8,3        ; @TGP_COLOR_ENC_YCBCR
	.no_dead_strip	_tpg_recalc
.subsections_via_symbols
