	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsxx_eeh_frozen
_rsxx_eeh_frozen:                       ## @rsxx_eeh_frozen
	.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, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	$1, (%r15)
	movq	%r15, %rdi
	callq	_rsxx_mask_interrupts
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r15, %rdi
	callq	_rsxx_eeh_save_issued_dmas
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_rsxx_eeh_save_issued_creg
	cmpl	$0, 4(%r15)
	movl	$0, %eax
	jle	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	movq	_COMMAND_BUFFER_SIZE8@GOTPCREL(%rip), %r14
	movq	_STATUS_BUFFER_SIZE8@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	4(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	24(%rax,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movl	16(%rax,%rbx), %ecx
	callq	_pci_free_consistent
	movq	8(%r15), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %edi
	movl	(%r14), %esi
	movl	(%rax,%rbx), %ecx
	callq	_pci_free_consistent
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IBM Flash Adapter PCI: preparing for slot reset.\n"

	.comm	_STATUS_BUFFER_SIZE8,4,2        ## @STATUS_BUFFER_SIZE8
	.comm	_COMMAND_BUFFER_SIZE8,4,2       ## @COMMAND_BUFFER_SIZE8
	.no_dead_strip	_rsxx_eeh_frozen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsxx_eeh_frozen
_rsxx_eeh_frozen:                       ; @rsxx_eeh_frozen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_rsxx_mask_interrupts
	bl	_wmb
	mov	x0, x20
	bl	_pci_disable_device
	mov	x0, x19
	bl	_rsxx_eeh_save_issued_dmas
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_rsxx_eeh_save_issued_creg
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x20, #0
	mov	x21, #0
Lloh2:
	adrp	x22, _COMMAND_BUFFER_SIZE8@GOTPAGE
Lloh3:
	ldr	x22, [x22, _COMMAND_BUFFER_SIZE8@GOTPAGEOFF]
Lloh4:
	adrp	x23, _STATUS_BUFFER_SIZE8@GOTPAGE
Lloh5:
	ldr	x23, [x23, _STATUS_BUFFER_SIZE8@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x20, x20, #32
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x20
	ldr	x2, [x9, #24]
	cbz	x2, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x23]
	ldr	w3, [x9, #16]
	bl	_pci_free_consistent
	ldr	x8, [x19, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x8, x20
	ldr	x2, [x9, #8]
	cbz	x2, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	ldr	w3, [x8, x20]
	bl	_pci_free_consistent
	b	LBB0_3
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IBM Flash Adapter PCI: preparing for slot reset.\n"

	.comm	_STATUS_BUFFER_SIZE8,4,2        ; @STATUS_BUFFER_SIZE8
	.comm	_COMMAND_BUFFER_SIZE8,4,2       ; @COMMAND_BUFFER_SIZE8
	.no_dead_strip	_rsxx_eeh_frozen
.subsections_via_symbols
