	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_check_sgl_tx
_siw_check_sgl_tx:                      ## @siw_check_sgl_tx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %r15
	movl	8(%rsi), %r12d
	movq	_SIW_MAX_SGE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r12d
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.4:
	movl	%r12d, %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	%eax, %ebx
	addq	$4, %r14
	addq	$8, %r12
	decl	%edx
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,2), %r9
	testq	%r9, %r9
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%r12), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	addq	%r14, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_siw_check_sge
	movl	%eax, %r13d
	xorl	%edi, %edi
	movq	_E_ACCESS_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15,%r14,2), %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movl	%r13d, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_MAX_SGE,4,2                ## @SIW_MAX_SGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E_ACCESS_OK,4,2                ## @E_ACCESS_OK
	.no_dead_strip	_siw_check_sgl_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_check_sgl_tx
_siw_check_sgl_tx:                      ; @siw_check_sgl_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #16]
	ldr	w25, [x1, #8]
Lloh0:
	adrp	x8, _SIW_MAX_SGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIW_MAX_SGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w25, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_2:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	w25, LBB0_10
; %bb.4:
	mov	x26, #0
	mov	w23, #0
Lloh6:
	adrp	x27, _E_ACCESS_OK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _E_ACCESS_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, w8
	add	x22, x22, #8
	add	x26, x26, #4
	subs	w25, w25, #1
	b.eq	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x5, [x22]
	cbz	x5, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	add	x2, x8, x26
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	mov	w4, #0
	bl	_siw_check_sge
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w0, w8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	b	LBB0_6
LBB0_10:
	mov	w23, #0
	b	LBB0_2
LBB0_11:
	mov	x23, x24
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_MAX_SGE,4,2                ; @SIW_MAX_SGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E_ACCESS_OK,4,2                ; @E_ACCESS_OK
	.no_dead_strip	_siw_check_sgl_tx
.subsections_via_symbols
