	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_card
_remove_card:                           ## @remove_card
	.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
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	72(%r12), %rdi
	callq	_get_device
	movq	%rax, %r14
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_15
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_PCI_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_reg_write
	movq	72(%r12), %rdi
	callq	_hpsb_remove_host
LBB0_4:
	movq	_PCI_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_reg_write
	movq	40(%r12), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_free_irq
	cmpl	$0, 80(%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_get_phy_reg
	andl	$-193, %eax
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_set_phy_reg
LBB0_6:
	movq	72(%r12), %rdi
	movq	_RESET_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LONG_RESET_NO_FORCE_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lynx_devctl
LBB0_7:
	movq	_MISC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MISC_CONTROL_SWRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_reg_set_bits
	movq	_DMA0_CHAN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_reg_write
	movl	68(%r12), %edi
	callq	_iounmap
	movl	64(%r12), %edi
	callq	_iounmap
	movl	60(%r12), %edi
	callq	_iounmap
	movl	56(%r12), %edi
	callq	_iounmap
LBB0_8:
	movq	_ISORCV_PAGES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	movl	(%rcx,%rbx,4), %edx
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r12), %rax
	movq	40(%r12), %rdi
	movl	(%r13), %esi
	movl	(%rax,%rbx,4), %ecx
	callq	_pci_free_consistent
	movl	(%r15), %eax
	jmp	LBB0_12
LBB0_13:
	movq	40(%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	52(%r12), %edx
	movl	48(%r12), %ecx
	callq	_pci_free_consistent
LBB0_14:
	movq	40(%r12), %rdi
	movq	_LOCALRAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r12), %ecx
	movl	36(%r12), %edx
	callq	_pci_free_consistent
LBB0_15:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_tasklet_kill
	testq	%r14, %r14
	je	LBB0_16
## %bb.17:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_device                     ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_PCI_INT_ENABLE,4,2             ## @PCI_INT_ENABLE
	.comm	_RESET_BUS,4,2                  ## @RESET_BUS
	.comm	_LONG_RESET_NO_FORCE_ROOT,4,2   ## @LONG_RESET_NO_FORCE_ROOT
	.comm	_MISC_CONTROL,4,2               ## @MISC_CONTROL
	.comm	_MISC_CONTROL_SWRESET,4,2       ## @MISC_CONTROL_SWRESET
	.comm	_DMA0_CHAN_CTRL,4,2             ## @DMA0_CHAN_CTRL
	.comm	_ISORCV_PAGES,4,2               ## @ISORCV_PAGES
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_LOCALRAM_SIZE,4,2              ## @LOCALRAM_SIZE
	.no_dead_strip	_remove_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_card
_remove_card:                           ; @remove_card
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_pci_set_drvdata
	ldr	x0, [x19, #72]
	bl	_get_device
	mov	x20, x0
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_15
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _PCI_INT_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_INT_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_write
	ldr	x0, [x19, #72]
	bl	_hpsb_remove_host
LBB0_4:
Lloh5:
	adrp	x8, _PCI_INT_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_INT_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_write
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #4
	bl	_get_phy_reg
	and	w2, w0, #0xffffff3f
	mov	x0, x19
	mov	w1, #4
	bl	_set_phy_reg
LBB0_6:
	ldr	x0, [x19, #72]
Lloh8:
	adrp	x8, _RESET_BUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RESET_BUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _LONG_RESET_NO_FORCE_ROOT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LONG_RESET_NO_FORCE_ROOT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_lynx_devctl
LBB0_7:
Lloh14:
	adrp	x8, _MISC_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MISC_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _MISC_CONTROL_SWRESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MISC_CONTROL_SWRESET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_set_bits
Lloh20:
	adrp	x8, _DMA0_CHAN_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA0_CHAN_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_write
	ldr	w0, [x19, #68]
	bl	_iounmap
	ldr	w0, [x19, #64]
	bl	_iounmap
	ldr	w0, [x19, #60]
	bl	_iounmap
	ldr	w0, [x19, #56]
	bl	_iounmap
LBB0_8:
Lloh23:
	adrp	x21, _ISORCV_PAGES@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ISORCV_PAGES@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh25:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh26:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x23, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	w2, [x9, x23, lsl #2]
	cbz	w2, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19, #40]
	ldr	w1, [x22]
	ldr	x8, [x19, #16]
	ldr	w3, [x8, x23, lsl #2]
	bl	_pci_free_consistent
	ldr	w8, [x21]
	b	LBB0_10
LBB0_13:
	ldr	x0, [x19, #40]
	ldr	w1, [x22]
	ldp	w3, w2, [x19, #48]
	bl	_pci_free_consistent
LBB0_14:
	ldr	x0, [x19, #40]
Lloh27:
	adrp	x8, _LOCALRAM_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOCALRAM_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldp	w3, w2, [x19, #32]
	bl	_pci_free_consistent
LBB0_15:
	add	x0, x19, #8
	bl	_tasklet_kill
	cbz	x20, LBB0_17
; %bb.16:
	mov	x0, x20
	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
	b	_put_device
LBB0_17:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_PCI_INT_ENABLE,4,2             ; @PCI_INT_ENABLE
	.comm	_RESET_BUS,4,2                  ; @RESET_BUS
	.comm	_LONG_RESET_NO_FORCE_ROOT,4,2   ; @LONG_RESET_NO_FORCE_ROOT
	.comm	_MISC_CONTROL,4,2               ; @MISC_CONTROL
	.comm	_MISC_CONTROL_SWRESET,4,2       ; @MISC_CONTROL_SWRESET
	.comm	_DMA0_CHAN_CTRL,4,2             ; @DMA0_CHAN_CTRL
	.comm	_ISORCV_PAGES,4,2               ; @ISORCV_PAGES
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_LOCALRAM_SIZE,4,2              ; @LOCALRAM_SIZE
	.no_dead_strip	_remove_card
.subsections_via_symbols
