	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_remove
_jmb38x_ms_remove:                      ## @jmb38x_ms_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	%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, -48(%rbp)                 ## 8-byte Spill
	callq	_pci_get_drvdata
	movq	%rax, %r13
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_memstick_remove_host
	movq	16(%r13), %rdi
	movq	%r12, %rsi
	callq	_dev_dbg
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_jmb38x_ms_free_host
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_memstick_priv
	movq	%rax, %rbx
	movq	_jmb38x_ms_dummy_submit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, (%rcx)
	leaq	24(%rbx), %rdi
	callq	_tasklet_kill
	movq	_INT_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_INT_STATUS_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	16(%r13), %rdi
	movq	%r15, %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	_ETIME@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	movl	$1, %esi
	callq	_jmb38x_ms_complete_cmd
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_jmb38x_ms_pmos
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	callq	_pci_release_regions
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jmb38x_ms_dummy_submit,4,2     ## @jmb38x_ms_dummy_submit
	.comm	_INT_SIGNAL_ENABLE,8,3          ## @INT_SIGNAL_ENABLE
	.comm	_INT_STATUS_ENABLE,8,3          ## @INT_STATUS_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupts off\n"

	.comm	_ETIME,4,2                      ## @ETIME
L_.str.1:                               ## @.str.1
	.asciz	"host removed\n"

	.no_dead_strip	_jmb38x_ms_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_remove
_jmb38x_ms_remove:                      ; @jmb38x_ms_remove
	.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
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x24, #0
Lloh0:
	adrp	x25, _jmb38x_ms_dummy_submit@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jmb38x_ms_dummy_submit@GOTPAGEOFF]
Lloh2:
	adrp	x26, _INT_SIGNAL_ENABLE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _INT_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _INT_STATUS_ENABLE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _INT_STATUS_ENABLE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x28, _ETIME@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ETIME@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
	lsl	x23, x24, #3
	ldr	x0, [x8, x23]
	bl	_memstick_remove_host
	ldr	x0, [x20, #16]
	mov	x1, x22
	bl	_dev_dbg
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23]
	bl	_jmb38x_ms_free_host
	add	x24, x24, #1
	ldrsw	x8, [x20]
	cmp	x24, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x24, lsl #3]
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_memstick_priv
	mov	x23, x0
	ldr	w8, [x25]
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x24, lsl #3]
	str	w8, [x9]
	add	x0, x0, #24
	bl	_tasklet_kill
	ldr	x8, [x23, #16]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x23, #16]
	ldr	x9, [x27]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x0, [x20, #16]
	mov	x1, x21
	bl	_dev_dbg
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x28]
	neg	w9, w9
	str	w9, [x8]
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x24, lsl #3]
	mov	w1, #1
	bl	_jmb38x_ms_complete_cmd
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_jmb38x_ms_pmos
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	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
	b	_kfree
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jmb38x_ms_dummy_submit,4,2     ; @jmb38x_ms_dummy_submit
	.comm	_INT_SIGNAL_ENABLE,8,3          ; @INT_SIGNAL_ENABLE
	.comm	_INT_STATUS_ENABLE,8,3          ; @INT_STATUS_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupts off\n"

	.comm	_ETIME,4,2                      ; @ETIME
l_.str.1:                               ; @.str.1
	.asciz	"host removed\n"

	.no_dead_strip	_jmb38x_ms_remove
.subsections_via_symbols
