	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_check_sge                  ## -- Begin function siw_check_sge
	.p2align	4, 0x90
_siw_check_sge:                         ## @siw_check_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_to_siw_dev
	movslq	%r13d, %rcx
	addq	%rbx, %rcx
	cmpq	(%r14), %rcx
	jle	LBB0_2
## %bb.1:
	movq	_E_BASE_BOUNDS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_9:
	movl	(%rcx), %eax
	xorl	%edi, %edi
	cmpl	8(%r14), %eax
	setne	%dil
	callq	_unlikely
	movq	(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rcx, %rdi
	callq	_siw_dbg_mem
	movq	_E_STAG_INVALID@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %esi
	sarl	$8, %esi
	movq	%rax, %rdi
	callq	_siw_mem_id2obj
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.5:
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_siw_dbg_pd
	movq	_E_STAG_INVALID@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_11:
	addq	16(%r14), %rbx
	movq	%r12, %rdi
	movq	%rcx, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	callq	_siw_check_mem
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.7:
	movq	$0, (%r15)
	callq	_siw_mem_put
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, (%rdx)
	movq	%r15, %rcx
	movq	%rdx, %r15
	jmp	LBB0_9
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_E_ACCESS_OK,4,2                ## @E_ACCESS_OK
	.comm	_E_BASE_BOUNDS,4,2              ## @E_BASE_BOUNDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STag unknown: 0x%08x\n"

	.comm	_E_STAG_INVALID,4,2             ## @E_STAG_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"STag mismatch: 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_check_sge                  ; -- Begin function siw_check_sge
	.p2align	2
_siw_check_sge:                         ; @siw_check_sge
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x25, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_to_siw_dev
	add	x8, x24, w21, sxtw
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _E_BASE_BOUNDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_BASE_BOUNDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x20, #0
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x25, #8]
	cmp	w8, w9
	cset	w0, ne
	bl	_unlikely
	ldr	x8, [x19]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w2, [x25, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_siw_dbg_mem
	b	LBB0_8
LBB0_6:
	ldr	w8, [x25, #8]
	asr	w1, w8, #8
	bl	_siw_mem_id2obj
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w2, [x25, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_siw_dbg_pd
LBB0_8:
Lloh7:
	adrp	x8, _E_STAG_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_STAG_INVALID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	ldr	x9, [x25, #16]
	add	x2, x9, x24
	mov	x0, x23
	mov	x1, x8
	mov	x3, x22
	mov	x4, x21
	bl	_siw_check_mem
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_14
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	str	xzr, [x19]
	mov	x0, x20
	bl	_siw_mem_put
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	str	x20, [x19]
	mov	x8, x20
	b	LBB0_4
LBB0_14:
	mov	w21, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_E_ACCESS_OK,4,2                ; @E_ACCESS_OK
	.comm	_E_BASE_BOUNDS,4,2              ; @E_BASE_BOUNDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STag unknown: 0x%08x\n"

	.comm	_E_STAG_INVALID,4,2             ; @E_STAG_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"STag mismatch: 0x%08x\n"

.subsections_via_symbols
