	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_device_ip_reinit_early_sriov
_amdgpu_device_ip_reinit_early_sriov:   ## @amdgpu_device_ip_reinit_early_sriov
	.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, -48(%rbp)                 ## 8-byte Spill
	leaq	_amdgpu_device_ip_reinit_early_sriov.ip_order(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	xorl	%esi, %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movq	%rbx, %rdi
	movq	%rsi, %r14
	callq	_ARRAY_SIZE
	movq	%r14, %rsi
	cltq
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %r15d
	xorl	%r14d, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, -8(%r13,%r15)
	movl	(%r12), %eax
	leaq	_amdgpu_device_ip_reinit_early_sriov.ip_order(%rip), %rbx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %r15
	cmpq	%rcx, %r14
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %r13
	movl	$0, -8(%r13,%r15)
	movq	(%r13,%r15), %rcx
	movl	(%rcx), %edx
	cmpl	(%rbx,%rsi,4), %edx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, -4(%r13,%r15)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rcx), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	(%r13,%r15), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	testl	%ebx, %ebx
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	testl	%ebx, %ebx
	je	LBB0_7
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @amdgpu_device_ip_reinit_early_sriov.ip_order
_amdgpu_device_ip_reinit_early_sriov.ip_order:
	.long	130                             ## 0x82
	.long	131                             ## 0x83
	.long	128                             ## 0x80
	.long	129                             ## 0x81

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RE-INIT-early: %s %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed"

L_.str.2:                               ## @.str.2
	.asciz	"succeeded"

	.no_dead_strip	_amdgpu_device_ip_reinit_early_sriov
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_device_ip_reinit_early_sriov
_amdgpu_device_ip_reinit_early_sriov:   ; @amdgpu_device_ip_reinit_early_sriov
	.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	x19, x0
Lloh0:
	adrp	x20, _amdgpu_device_ip_reinit_early_sriov.ip_order@PAGE
Lloh1:
	add	x20, x20, _amdgpu_device_ip_reinit_early_sriov.ip_order@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	mov	x28, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #1
	str	w8, [x26, x27]
	ldr	w8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #1
	add	x27, x27, #16
	cmp	x28, w8, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x19, #8]
	add	x24, x26, x27
	str	wzr, [x24]
	ldr	x9, [x24, #8]
	ldr	w10, [x9]
	ldr	w11, [x20, x23, lsl #2]
	cmp	w10, w11
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w10, [x24, #4]
	cbz	w10, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x9, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	ldr	x8, [x24, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
	cmp	w0, #0
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x2, x25, x8, eq
	mov	x0, x21
	bl	_DRM_INFO
	cbz	w22, LBB0_5
	b	LBB0_11
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @amdgpu_device_ip_reinit_early_sriov.ip_order
_amdgpu_device_ip_reinit_early_sriov.ip_order:
	.long	130                             ; 0x82
	.long	131                             ; 0x83
	.long	128                             ; 0x80
	.long	129                             ; 0x81

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RE-INIT-early: %s %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed"

l_.str.2:                               ; @.str.2
	.asciz	"succeeded"

	.no_dead_strip	_amdgpu_device_ip_reinit_early_sriov
.subsections_via_symbols
