	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_relocs
_do_relocs:                             ## @do_relocs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdi
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$24, %r12d
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	-16(%r14,%r12), %rcx
	andq	$-4, %rcx
	addq	16(%rbx), %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	andq	$-4, %rax
	addq	%rcx, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, (%rax)
	movl	(%rbx), %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$32, %r12
	cmpq	%rcx, %r13
	jae	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movq	24(%rbx), %r14
	movl	(%r14,%r12), %r15d
	addl	(%rcx,%r13,4), %r15d
	movzbl	-24(%r14,%r12), %ecx
	sarl	%cl, %r15d
	cmpq	-8(%r14,%r12), %rdi
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CONFIG_TEGRA_HOST1X_FIREWALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-16(%r14,%r12), %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%eax, %esi
	sarl	%cl, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%esi, %ecx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, %esi
	callq	_host1x_bo_kunmap
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-16(%r14,%r12), %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_host1x_bo_kmap
	movl	-16(%r14,%r12), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, -44(%rbp)                  ## 4-byte Folded Spill
	movl	-16(%r14,%r12), %eax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movslq	%ecx, %rax
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jmp	LBB0_12
LBB0_14:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_host1x_bo_kunmap
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_TEGRA_HOST1X_FIREWALL,4,2 ## @CONFIG_TEGRA_HOST1X_FIREWALL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not map cmdbuf for relocation\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.no_dead_strip	_do_relocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_relocs
_do_relocs:                             ; @do_relocs
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x22, x1
	mov	x20, x0
	mov	x24, #0
	mov	x25, #0
	stp	x1, xzr, [sp]                   ; 16-byte Folded Spill
	ldr	x21, [x1, #8]
	mov	w23, #-1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	add	x9, x19, x24
	ldrsw	x9, [x9, #8]
	and	x9, x9, #0xfffffffffffffffc
	ldrsw	x10, [x22]
	and	x10, x10, #0xfffffffffffffffc
	add	x8, x8, x9
	add	x8, x8, x10
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w26, w27
	asr	w9, w9, w28
	str	w9, [x8]
	ldr	w8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	add	x24, x24, #32
	cmp	x25, w8, uxtw
	b.hs	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x20, #24]
	add	x9, x19, x24
	ldr	x10, [x9, #16]
	cmp	x21, x10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	w27, [x8, x25, lsl #2]
	ldr	w26, [x9, #24]
	ldr	w28, [x9]
Lloh0:
	adrp	x8, _CONFIG_TEGRA_HOST1X_FIREWALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_TEGRA_HOST1X_FIREWALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, x24
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w1, w8, w9
	cmp	w23, w1
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x2, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_host1x_bo_kunmap
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
	asr	w1, w8, w9
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_host1x_bo_kmap
	ldr	w23, [x19, #8]
	ldr	w22, [x22]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	asr	w23, w23, w22
	ldr	w8, [x19, #8]
	ldr	x22, [sp]                       ; 8-byte Folded Reload
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w8, w8, w9
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, w8, sxtw
	b	LBB0_3
LBB0_14:
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x2, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, x23
	bl	_host1x_bo_kunmap
LBB0_16:
	mov	w0, #0
LBB0_17:
	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:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_TEGRA_HOST1X_FIREWALL,4,2 ; @CONFIG_TEGRA_HOST1X_FIREWALL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not map cmdbuf for relocation\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.no_dead_strip	_do_relocs
.subsections_via_symbols
