	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engines_init_mmio        ## -- Begin function intel_engines_init_mmio
	.p2align	4, 0x90
_intel_engines_init_mmio:               ## @intel_engines_init_mmio
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_mkwrite_device_info
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_INTEL_INFO
	movl	(%rax), %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_WARN_ON
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_BITS_PER_TYPE
	leaq	-1(%rax), %rdi
	movq	_I915_NUM_ENGINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GENMASK
	andl	%ebx, %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r12, %rdi
	callq	_i915_inject_probe_failure
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_intel_engines@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_HAS_ENGINE
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_intel_engine_setup
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r15d
	jmp	LBB0_6
LBB0_7:
	xorl	%edi, %edi
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
LBB0_9:
	movl	%r15d, %edi
	callq	_hweight32
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_RUNTIME_INFO
	movl	%ebx, (%rax)
	movq	%r12, %rdi
	callq	_intel_gt_check_and_clear_faults
	movq	%r12, %rdi
	callq	_intel_setup_engine_capabilities
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_intel_engines_cleanup
	movl	%r13d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_NUM_ENGINES,4,2           ## @I915_NUM_ENGINES
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_intel_engines,4,2              ## @intel_engines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engines_init_mmio        ; -- Begin function intel_engines_init_mmio
	.p2align	2
_intel_engines_init_mmio:               ; @intel_engines_init_mmio
	.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
	bl	_mkwrite_device_info
	mov	x20, x0
	mov	x0, x19
	bl	_INTEL_INFO
	ldr	w24, [x0]
	cmp	w24, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	w0, #0
	bl	_BITS_PER_TYPE
	sub	x0, x0, #1
Lloh0:
	adrp	x8, _I915_NUM_ENGINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_NUM_ENGINES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GENMASK
	and	w0, w0, w24
	bl	_WARN_ON
	mov	x0, x19
	bl	_i915_inject_probe_failure
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_2:
Lloh6:
	adrp	x25, _intel_engines@GOTPAGE
Lloh7:
	ldr	x25, [x25, _intel_engines@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_8
; %bb.3:
	mov	w22, #0
	mov	w21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_HAS_ENGINE
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_intel_engine_setup
	cbnz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_BIT
	orr	w21, w0, w21
	b	LBB0_4
LBB0_8:
	mov	w21, #0
LBB0_9:
	cmp	w21, w24
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_11
; %bb.10:
	str	w21, [x20]
LBB0_11:
	mov	x0, x21
	bl	_hweight32
	mov	x20, x0
	mov	x0, x19
	bl	_RUNTIME_INFO
	str	w20, [x0]
	mov	x0, x19
	bl	_intel_gt_check_and_clear_faults
	mov	x0, x19
	bl	_intel_setup_engine_capabilities
	mov	w23, #0
	b	LBB0_13
LBB0_12:
	mov	x23, x0
	mov	x0, x19
	bl	_intel_engines_cleanup
LBB0_13:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_NUM_ENGINES,4,2           ; @I915_NUM_ENGINES
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_intel_engines,4,2              ; @intel_engines
.subsections_via_symbols
