	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_transfer_size
_get_transfer_size:                     ## @get_transfer_size
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LINE_SZ_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NUM_LINES_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movq	_FORMAT_NTSC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_9
## %bb.3:
	movl	8(%rdi), %ecx
	leal	-128(%rcx), %esi
	cmpl	$2, %esi
	jb	LBB0_7
## %bb.4:
	cmpl	$130, %ecx
	je	LBB0_8
## %bb.5:
	cmpl	$131, %ecx
	jne	LBB0_17
## %bb.6:
	movq	_NUM_LINES_1CIFS_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LINE_SZ_1CIFS_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_9:
	movq	_FORMAT_PAL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_17
## %bb.10:
	movl	8(%rdi), %ecx
	leal	-128(%rcx), %esi
	cmpl	$2, %esi
	jb	LBB0_14
## %bb.11:
	cmpl	$130, %ecx
	je	LBB0_15
## %bb.12:
	cmpl	$131, %ecx
	jne	LBB0_17
## %bb.13:
	movq	_NUM_LINES_1CIFS_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LINE_SZ_1CIFS_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movq	_NUM_LINES_4CIFS_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	_LINE_SZ_4CIFS_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	movq	_NUM_LINES_2CIFS_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LINE_SZ_2CIFS_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_NUM_LINES_4CIFS_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	_LINE_SZ_4CIFS_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_NUM_LINES_2CIFS_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LINE_SZ_2CIFS_PAL@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	movq	_MASK_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	12(%rdi), %ecx
	imull	%eax, %edx
	movq	_COLOR_Y8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	setne	%cl
	shll	%cl, %edx
	movq	_PREFIX_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movq	_DEF_USB_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-1(%rcx), %esi
	movl	%ecx, %eax
	negl	%eax
	andl	%edx, %eax
	addl	%ecx, %eax
	testl	%esi, %edx
	cmovel	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_SZ_DEF,4,2                ## @LINE_SZ_DEF
	.comm	_NUM_LINES_DEF,4,2              ## @NUM_LINES_DEF
	.comm	_FORMAT_NTSC,8,3                ## @FORMAT_NTSC
	.comm	_NUM_LINES_4CIFS_NTSC,4,2       ## @NUM_LINES_4CIFS_NTSC
	.comm	_LINE_SZ_4CIFS_NTSC,4,2         ## @LINE_SZ_4CIFS_NTSC
	.comm	_NUM_LINES_2CIFS_NTSC,4,2       ## @NUM_LINES_2CIFS_NTSC
	.comm	_LINE_SZ_2CIFS_NTSC,4,2         ## @LINE_SZ_2CIFS_NTSC
	.comm	_NUM_LINES_1CIFS_NTSC,4,2       ## @NUM_LINES_1CIFS_NTSC
	.comm	_LINE_SZ_1CIFS_NTSC,4,2         ## @LINE_SZ_1CIFS_NTSC
	.comm	_FORMAT_PAL,8,3                 ## @FORMAT_PAL
	.comm	_NUM_LINES_4CIFS_PAL,4,2        ## @NUM_LINES_4CIFS_PAL
	.comm	_LINE_SZ_4CIFS_PAL,4,2          ## @LINE_SZ_4CIFS_PAL
	.comm	_NUM_LINES_2CIFS_PAL,4,2        ## @NUM_LINES_2CIFS_PAL
	.comm	_LINE_SZ_2CIFS_PAL,4,2          ## @LINE_SZ_2CIFS_PAL
	.comm	_NUM_LINES_1CIFS_PAL,4,2        ## @NUM_LINES_1CIFS_PAL
	.comm	_LINE_SZ_1CIFS_PAL,4,2          ## @LINE_SZ_1CIFS_PAL
	.comm	_MASK_COLOR,4,2                 ## @MASK_COLOR
	.comm	_COLOR_Y8,4,2                   ## @COLOR_Y8
	.comm	_PREFIX_SIZE,4,2                ## @PREFIX_SIZE
	.comm	_DEF_USB_BLOCK,4,2              ## @DEF_USB_BLOCK
	.no_dead_strip	_get_transfer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_transfer_size
_get_transfer_size:                     ; @get_transfer_size
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_17
; %bb.1:
Lloh0:
	adrp	x8, _LINE_SZ_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINE_SZ_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NUM_LINES_DEF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_LINES_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x10, [x0]
Lloh6:
	adrp	x11, _FORMAT_NTSC@GOTPAGE
Lloh7:
	ldr	x11, [x11, _FORMAT_NTSC@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.2:
	ldr	w10, [x0, #8]
	sub	w11, w10, #128
	cmp	w11, #2
	b.lo	LBB0_11
; %bb.3:
	cmp	w10, #130
	b.eq	LBB0_12
; %bb.4:
	cmp	w10, #131
	b.ne	LBB0_16
; %bb.5:
Lloh9:
	adrp	x8, _NUM_LINES_1CIFS_NTSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NUM_LINES_1CIFS_NTSC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _LINE_SZ_1CIFS_NTSC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LINE_SZ_1CIFS_NTSC@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh14:
	adrp	x11, _FORMAT_PAL@GOTPAGE
Lloh15:
	ldr	x11, [x11, _FORMAT_PAL@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_16
; %bb.7:
	ldr	w10, [x0, #8]
	sub	w11, w10, #128
	cmp	w11, #2
	b.lo	LBB0_13
; %bb.8:
	cmp	w10, #130
	b.eq	LBB0_14
; %bb.9:
	cmp	w10, #131
	b.ne	LBB0_16
; %bb.10:
Lloh17:
	adrp	x8, _NUM_LINES_1CIFS_PAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NUM_LINES_1CIFS_PAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _LINE_SZ_1CIFS_PAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LINE_SZ_1CIFS_PAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh22:
	adrp	x8, _NUM_LINES_4CIFS_NTSC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NUM_LIN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loh46:
	ldr	x11, [x11, _COLOR_Y8@GOTPAGEOFF]
	and	w9, w10, w9
Lloh47:
	ldr	w10, [x11]
	cmp	w9, w10
	cset	w9, ne
Lloh48:
	adrp	x10, _PREFIX_SIZE@GOTPAGE
Lloh49:
	ldr	x10, [x10, _PREFIX_SIZE@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh50:
	ldr	w9, [x10]
	add	w8, w8, w9
Lloh51:
	adrp	x9, _DEF_USB_BLOCK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _DEF_USB_BLOCK@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	sub	w10, w9, #1
	neg	w11, w9
	and	w11, w8, w11
	add	w9, w11, w9
	tst	w8, w10
	csel	w0, w8, w9, eq
LBB0_17:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_SZ_DEF,4,2                ; @LINE_SZ_DEF
	.comm	_NUM_LINES_DEF,4,2              ; @NUM_LINES_DEF
	.comm	_FORMAT_NTSC,8,3                ; @FORMAT_NTSC
	.comm	_NUM_LINES_4CIFS_NTSC,4,2       ; @NUM_LINES_4CIFS_NTSC
	.comm	_LINE_SZ_4CIFS_NTSC,4,2         ; @LINE_SZ_4CIFS_NTSC
	.comm	_NUM_LINES_2CIFS_NTSC,4,2       ; @NUM_LINES_2CIFS_NTSC
	.comm	_LINE_SZ_2CIFS_NTSC,4,2         ; @LINE_SZ_2CIFS_NTSC
	.comm	_NUM_LINES_1CIFS_NTSC,4,2       ; @NUM_LINES_1CIFS_NTSC
	.comm	_LINE_SZ_1CIFS_NTSC,4,2         ; @LINE_SZ_1CIFS_NTSC
	.comm	_FORMAT_PAL,8,3                 ; @FORMAT_PAL
	.comm	_NUM_LINES_4CIFS_PAL,4,2        ; @NUM_LINES_4CIFS_PAL
	.comm	_LINE_SZ_4CIFS_PAL,4,2          ; @LINE_SZ_4CIFS_PAL
	.comm	_NUM_LINES_2CIFS_PAL,4,2        ; @NUM_LINES_2CIFS_PAL
	.comm	_LINE_SZ_2CIFS_PAL,4,2          ; @LINE_SZ_2CIFS_PAL
	.comm	_NUM_LINES_1CIFS_PAL,4,2        ; @NUM_LINES_1CIFS_PAL
	.comm	_LINE_SZ_1CIFS_PAL,4,2          ; @LINE_SZ_1CIFS_PAL
	.comm	_MASK_COLOR,4,2                 ; @MASK_COLOR
	.comm	_COLOR_Y8,4,2                   ; @COLOR_Y8
	.comm	_PREFIX_SIZE,4,2                ; @PREFIX_SIZE
	.comm	_DEF_USB_BLOCK,4,2              ; @DEF_USB_BLOCK
	.no_dead_strip	_get_transfer_size
.subsections_via_symbols
