	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __GX_GetNumXfbLines
___GX_GetNumXfbLines:                   ## @__GX_GetNumXfbLines
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %eax
	shll	$8, %eax
	addl	$-256, %eax
	cltd
	idivl	%esi
	movl	%eax, %r9d
	leal	1(%r9), %r8d
	leal	-129(%rsi), %eax
	cmpl	$126, %eax
	ja	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	sarl	%esi
	testb	$1, %cl
	jne	LBB0_1
## %bb.2:
	movl	%edi, %eax
	cltd
	idivl	%ecx
	addl	$2, %r9d
	testl	%edx, %edx
	cmovel	%r9d, %r8d
LBB0_3:
	cmpl	$1024, %r8d                     ## imm = 0x400
	movl	$1024, %eax                     ## imm = 0x400
	cmovll	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___GX_GetNumXfbLines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __GX_GetNumXfbLines
___GX_GetNumXfbLines:                   ; @__GX_GetNumXfbLines
	.cfi_startproc
; %bb.0:
	lsl	w8, w0, #8
	sub	w8, w8, #256
	sdiv	w9, w8, w1
	add	w8, w9, #1
	sub	w10, w1, #129
	cmp	w10, #126
	b.hi	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x1
	asr	w1, w1, #1
	tbnz	w10, #0, LBB0_1
; %bb.2:
	sdiv	w11, w0, w10
	msub	w10, w11, w10, w0
	add	w9, w9, #2
	cmp	w10, #0
	csel	w8, w9, w8, eq
LBB0_3:
	mov	w9, #1024
	cmp	w8, #1024
	csel	w0, w8, w9, lt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___GX_GetNumXfbLines
.subsections_via_symbols
