	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_remove
_r592_remove:                           ## @r592_remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	movl	40(%rax), %edi
	callq	_kthread_stop
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_r592_enable_device
	movq	%r15, %rbx
	addq	$32, %rbx
	movq	_ETIME@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	subl	(%r12), %ecx
	movl	%ecx, (%rax)
	movl	16(%r15), %edi
	movq	%rbx, %rsi
	callq	_memstick_next_req
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movl	16(%r15), %edi
	callq	_memstick_remove_host
	movl	24(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movl	20(%r15), %edi
	callq	_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movl	16(%r15), %edi
	callq	_memstick_free_host
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_r592_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r592_remove
_r592_remove:                           ; @r592_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	w0, [x0, #40]
	bl	_kthread_stop
	mov	x0, x20
	mov	w1, #0
	bl	_r592_enable_device
	add	x21, x20, #32
Lloh0:
	adrp	x22, _ETIME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETIME@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x22]
	neg	w9, w9
	str	w9, [x8]
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_memstick_next_req
	cbz	w0, LBB0_1
LBB0_3:
	ldr	w0, [x20, #16]
	bl	_memstick_remove_host
	ldr	w0, [x20, #24]
	mov	x1, x20
	bl	_free_irq
	ldr	w0, [x20, #20]
	bl	_iounmap
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	ldr	w0, [x20, #16]
	bl	_memstick_free_host
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dma_free_coherent
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_r592_remove
.subsections_via_symbols
