	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_count_sge
_ipath_count_sge:                       ## @ipath_count_sge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %r12
	movq	32(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	12(%rdi), %r13d
	movl	8(%rdi), %r14d
	movq	48(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %r12
	movl	(%rax,%rcx), %r14d
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	subl	%r15d, %ebx
	je	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
	cmpl	%ebx, %r14d
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r15d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, %r15d
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_BUG_ON
	xorl	%eax, %eax
	testb	$3, %r12b
	jne	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %ecx
	andl	$3, %ecx
	jne	LBB0_22
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movl	%r15d, %eax
	addq	%rax, %r12
	subl	%r15d, %r14d
	subl	%r15d, %r13d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	_IPATH_SEGSZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	%rdx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rdx
	jge	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	decq	%rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	4(%rax), %r13d
	movq	8(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %r12
	addq	$40, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
LBB0_1:
	movl	$1, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%ecx, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_SEGSZ,8,3                ## @IPATH_SEGSZ
	.no_dead_strip	_ipath_count_sge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_count_sge
_ipath_count_sge:                       ; @ipath_count_sge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w1, LBB0_16
; %bb.1:
	mov	x19, x1
	ldr	x9, [x0]
	ldp	x8, x26, [x0, #32]
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
	ldp	x27, x24, [x0, #16]
	ldp	w21, w28, [x0, #8]
	ldr	x23, [x0, #48]
	mov	w22, #1
	mov	w8, #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x8, [x8]
	add	x8, x8, x27, lsl #4
	ldr	x26, [x8, #8]
	ldr	w21, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w20, #1
	subs	w19, w19, w25
	b.eq	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	cmp	w21, w19
	csel	w8, w21, w19, lt
	cmp	w8, w28
	csel	w25, w8, w28, lt
	cmp	w25, #0
	cset	w0, eq
	bl	_BUG_ON
	tst	x26, #0x3
	b.ne	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w25, #0x3
	cmp	w19, w25
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	add	x26, x26, w25, uxtw
	sub	w21, w21, w25
	subs	w28, w28, w25
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w21, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
Lloh0:
	adrp	x8, _IPATH_SEGSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPATH_SEGSZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x27, x8
	b.lt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	subs	x8, x8, #1
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldp	w21, w28, [x23]
	ldp	x27, x24, [x23, #8]
	ldp	x8, x26, [x23, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x23, x23, #40
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	str	xzr, [sp]                       ; 8-byte Folded Spill
	b	LBB0_3
LBB0_15:
	mov	w20, #0
	b	LBB0_17
LBB0_16:
	mov	w20, #1
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	mov	x20, x22
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_SEGSZ,8,3                ; @IPATH_SEGSZ
	.no_dead_strip	_ipath_count_sge
.subsections_via_symbols
