	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host1x_job_pin                 ## -- Begin function host1x_job_pin
	.p2align	4, 0x90
_host1x_job_pin:                        ## @host1x_job_pin
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_pin_job
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_23:
	movq	%r14, %rdi
	callq	_host1x_job_unpin
LBB0_27:
	xorl	%eax, %eax
	callq	_wmb
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_CONFIG_TEGRA_HOST1X_FIREWALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_copy_gathers
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
LBB0_3:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_26
## %bb.4:
	movl	$1, %r15d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	incq	%r15
	incl	%r13d
	cmpq	%rcx, %r12
	jae	LBB0_26
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	8(%r14), %rcx
	leaq	(%r12,%r12,2), %rsi
	cmpl	$0, (%rcx,%rsi,8)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_CONFIG_TEGRA_HOST1X_FIREWALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r14
	callq	_IS_ENABLED
	movq	%r14, %r11
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdi), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, 16(%r11,%r14,8)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdi), %eax
	incq	%r12
	cmpq	%rax, %r12
	jae	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %esi
	notl	%esi
	leal	2(%r13), %r8d
	movq	8(%rdi), %r9
	movq	8(%r11,%r14,8), %rcx
	leaq	(%r11,%r14,8), %rdx
	addq	$16, %rdx
	addl	%eax, %esi
	movq	%r15, %r10
	testb	$1, %sil
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%r15,2), %r10
	cmpq	%rcx, 8(%r9,%r10,8)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%r9,%r10,8)
	movl	(%rdx), %esi
	movl	%esi, 16(%r9,%r10,8)
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%r15), %r10
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r8d, %eax
	jne	LBB0_15
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r11,%r14,8), %rsi
	movq	%rdi, %r14
	callq	_do_relocs
	testl	%eax, %eax
	jne	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_25
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	subl	%r10d, %eax
	leaq	(%r10,%r10,2), %rsi
	leaq	(%r9,%rsi,8), %rsi
	addq	$40, %rsi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	addq	$48, %rsi
	addl	$-2, %eax
	je	LBB0_21
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, -32(%rsi)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, -40(%rsi)
	movl	(%rdx), %ebx
	movl	%ebx, -24(%rsi)
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rcx, -8(%rsi)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, -16(%rsi)
	movl	(%rdx), %ebx
	movl	%ebx, (%rsi)
	jmp	LBB0_20
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_TEGRA_HOST1X_FIREWALL,4,2 ## @CONFIG_TEGRA_HOST1X_FIREWALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host1x_job_pin                 ; -- Begin function host1x_job_pin
	.p2align	2
_host1x_job_pin:                        ; @host1x_job_pin
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_dev_get_drvdata
	mov	x1, x19
	bl	_pin_job
	mov	x20, x0
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_host1x_job_unpin
LBB0_2:
	bl	_wmb
	mov	x0, x20
	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:
Lloh0:
	adrp	x22, _CONFIG_TEGRA_HOST1X_FIREWALL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CONFIG_TEGRA_HOST1X_FIREWALL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_copy_gathers
	mov	x20, x0
	cbnz	w0, LBB0_1
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.6:
	mov	x26, #0
	mov	w21, #-1
	mov	w23, #1
	mov	w24, #24
	mov	w25, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	sub	w21, w21, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x28, [x19, #8]
	madd	x20, x26, x24, x28
	ldr	w9, [x20]
	cbnz	w9, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	bl	_IS_ENABLED
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x26, lsl #2]
	madd	x9, x26, x24, x28
	str	w8, [x9, #16]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x19]
	add	x27, x26, #1
	cmp	x27, x11
	b.hs	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x19, #8]
	madd	x9, x26, x24, x28
	ldr	x8, [x9, #8]
	add	x9, x9, #16
	madd	x10, x25, x24, x10
	add	x10, x10, #16
	add	w11, w11, w21
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x10, x10, #24
	subs	w11, w11, #1
	b.eq	LBB0_17
LBB0_15:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x12, [x10, #-8]
	cmp	x12, x8
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	stur	w23, [x10, #-16]
	ldr	w12, [x9]
	str	w12, [x10]
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_do_relocs
	cbnz	w0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19]
	mov	x26, x27
	b	LBB0_8
LBB0_19:
	mov	w20, #0
	b	LBB0_2
LBB0_20:
	mov	x20, x0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_TEGRA_HOST1X_FIREWALL,4,2 ; @CONFIG_TEGRA_HOST1X_FIREWALL
.subsections_via_symbols
