	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_workload
_scan_workload:                         ## @scan_workload
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	leaq	(%r15,%r13), %r14
	movq	16(%rbx), %r12
	addq	%r12, %r13
	movl	28(%rbx), %edi
	callq	__RING_CTL_BUF_SIZE
	movq	_RING_BUFFER_INSTRUCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_GTT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -120(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -112(%rbp)
	movl	28(%rbx), %edi
	callq	__RING_CTL_BUF_SIZE
	movq	%rax, -64(%rbp)
	movq	%r14, -104(%rbp)
	movq	%r13, -96(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	%rbx, -80(%rbp)
	movl	$0, -88(%rbp)
	movq	_bypass_scan_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %edx
	xorl	%eax, %eax
	btl	%edx, %ecx
	jb	LBB0_6
## %bb.3:
	cmpq	%r12, %r15
	je	LBB0_6
## %bb.4:
	leaq	-120(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ip_gma_set
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %r14
	movq	8(%rbx), %r15
	movq	16(%rbx), %r12
	movl	28(%rbx), %edi
	callq	__RING_CTL_BUF_SIZE
	leaq	-120(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_command_scan
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GTT_PAGE_SIZE,4,2         ## @I915_GTT_PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RING_BUFFER_INSTRUCTION,4,2    ## @RING_BUFFER_INSTRUCTION
	.comm	_GTT_BUFFER,4,2                 ## @GTT_BUFFER
	.comm	_bypass_scan_mask,4,2           ## @bypass_scan_mask
	.no_dead_strip	_scan_workload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_workload
_scan_workload:                         ; @scan_workload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	ldp	x8, x21, [x19]
	add	x20, x21, x8
	ldr	x22, [x19, #16]
	add	x23, x22, x8
	ldr	w0, [x19, #28]
	bl	__RING_CTL_BUF_SIZE
Lloh6:
	adrp	x8, _RING_BUFFER_INSTRUCTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RING_BUFFER_INSTRUCTION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #72]
Lloh9:
	adrp	x8, _GTT_BUFFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GTT_BUFFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	stp	w9, w8, [sp, #64]
	ldp	w8, w0, [x19, #24]
	str	w8, [sp]
	ldr	x8, [x19]
	str	x8, [sp, #8]
	bl	__RING_CTL_BUF_SIZE
	mov	x8, x0
	mov	w0, #0
	str	x8, [sp, #56]
	stp	x20, x23, [sp, #16]
	ldr	w8, [x19, #32]
	str	w8, [sp, #48]
	str	x19, [sp, #40]
	str	wzr, [sp, #32]
Lloh12:
	adrp	x8, _bypass_scan_mask@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bypass_scan_mask@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_2
; %bb.4:
	cmp	x21, x22
	b.eq	LBB0_2
; %bb.5:
	mov	x0, sp
	mov	x1, x20
	bl	_ip_gma_set
	cbnz	w0, LBB0_2
; %bb.6:
	ldp	x21, x20, [x19, #8]
	ldr	x22, [x19]
	ldr	w0, [x19, #28]
	bl	__RING_CTL_BUF_SIZE
	mov	x4, x0
	mov	x0, sp
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_command_scan
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GTT_PAGE_SIZE,4,2         ; @I915_GTT_PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RING_BUFFER_INSTRUCTION,4,2    ; @RING_BUFFER_INSTRUCTION
	.comm	_GTT_BUFFER,4,2                 ; @GTT_BUFFER
	.comm	_bypass_scan_mask,4,2           ; @bypass_scan_mask
	.no_dead_strip	_scan_workload
.subsections_via_symbols
