	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reloc_gpu
_reloc_gpu:                             ## @reloc_gpu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movslq	8(%rdi), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shrq	$2, %rcx
	leal	1(%r14), %edx
	subq	%rdx, %rcx
	cmpq	%rax, %rcx
	jae	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rdi
	callq	_reloc_gpu_flush
LBB0_2:
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_eb_use_cmdparser
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movl	(%rbx), %edi
	callq	_intel_engine_can_store_dword
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	___reloc_gpu_alloc
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	%r15d, %edi
	jmp	LBB0_10
LBB0_11:
	movslq	8(%rbx), %rax
	addl	%eax, %r14d
	shlq	$2, %rax
	addq	16(%rbx), %rax
	movl	%r14d, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_reloc_gpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reloc_gpu
_reloc_gpu:                             ; @reloc_gpu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldrsw	x8, [x0, #8]!
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	lsr	x9, x9, #2
	add	w10, w2, #1
	sub	x9, x9, x10
	cmp	x9, x8
	b.hs	LBB0_2
; %bb.1:
	bl	_reloc_gpu_flush
LBB0_2:
	ldr	w8, [x20, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_eb_use_cmdparser
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_7:
	ldr	w0, [x20]
	bl	_intel_engine_can_store_dword
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	___reloc_gpu_alloc
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	b	LBB0_6
LBB0_10:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20, #8]
	add	x0, x8, x9, lsl #2
	add	w8, w9, w19
	str	w8, [x20, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_reloc_gpu
.subsections_via_symbols
