	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host1x_job_unpin               ## -- Begin function host1x_job_unpin
	.p2align	4, 0x90
_host1x_job_unpin:                      ## @host1x_job_unpin
	.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	%rdi, %r15
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_dev_get_drvdata
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%rbx,4), %edi
	movl	4(%r12,%rbx,4), %esi
	callq	_host1x_bo_unpin
	movl	(%r12,%rbx,4), %edi
	callq	_host1x_bo_put
	incq	%r13
	movl	(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r12
	movq	_CONFIG_TEGRA_HOST1X_FIREWALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12,%rbx,4), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx), %esi
	callq	_iommu_unmap
	movq	32(%r15), %rax
	movl	(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_iova_pfn
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_free_iova
	jmp	LBB0_6
LBB0_7:
	movl	$0, (%r15)
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_wc                    ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_unpin               ; -- Begin function host1x_job_unpin
	.p2align	2
_host1x_job_unpin:                      ; @host1x_job_unpin
	.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	x19, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_dev_get_drvdata
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _CONFIG_TEGRA_HOST1X_FIREWALL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CONFIG_TEGRA_HOST1X_FIREWALL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, x21
	ldp	w0, w1, [x24]
	bl	_host1x_bo_unpin
	ldr	w0, [x24]
	bl	_host1x_bo_put
	add	x22, x22, #1
	ldr	w8, [x19]
	add	x21, x21, #16
	cmp	x22, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #40]
	ldr	w0, [x23]
	bl	_IS_ENABLED
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x24, x21
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	lsl	x25, x22, #2
	ldr	w1, [x8, x25]
	bl	_iommu_unmap
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x25]
	mov	x0, x20
	bl	_iova_pfn
	mov	x1, x0
	mov	x0, x20
	bl	_free_iova
	b	LBB0_2
LBB0_7:
	str	wzr, [x19]
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	ldp	w3, w2, [x19, #4]
	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
	b	_dma_free_wc
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_TEGRA_HOST1X_FIREWALL,4,2 ; @CONFIG_TEGRA_HOST1X_FIREWALL
.subsections_via_symbols
