	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilo_remove
_ilo_remove:                            ## @ilo_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
	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, %r14
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_clear_device
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_MINOR
	movl	%eax, %r12d
	movq	_max_ccb@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	movq	_ilo_major@GOTPCREL(%rip), %r14
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ilo_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_MKDEV
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_device_destroy
	incl	%ebx
	movl	(%r15), %eax
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jl	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_cdev_del
	movq	%rbx, %rdi
	callq	_ilo_disable_interrupts
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ilo_unmap_device
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%rbx, %rdi
	callq	_kfree
	movq	_ilo_hwdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r12d, %eax
	cltd
	idivl	(%r15)
	cltq
	movq	$0, (%rcx,%rax,8)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_ccb,4,2                    ## @max_ccb
	.comm	_ilo_class,4,2                  ## @ilo_class
	.comm	_ilo_major,4,2                  ## @ilo_major
	.comm	_ilo_hwdev,8,3                  ## @ilo_hwdev
	.no_dead_strip	_ilo_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilo_remove
_ilo_remove:                            ; @ilo_remove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_clear_device
	ldr	w0, [x20]
	bl	_MINOR
	mov	x21, x0
Lloh0:
	adrp	x24, _max_ccb@GOTPAGE
Lloh1:
	ldr	x24, [x24, _max_ccb@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
Lloh2:
	adrp	x25, _ilo_class@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ilo_class@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ilo_major@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ilo_major@GOTPAGEOFF]
	mov	x22, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x25]
	ldr	w0, [x26]
	mov	x1, x22
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x23
	bl	_device_destroy
	add	w22, w22, #1
	ldr	w8, [x24]
	add	w8, w8, w21
	cmp	w22, w8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_cdev_del
	mov	x0, x20
	bl	_ilo_disable_interrupts
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x19
	mov	x1, x20
	bl	_ilo_unmap_device
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x20
	bl	_kfree
Lloh6:
	adrp	x8, _ilo_hwdev@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ilo_hwdev@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [x24]
	sdiv	w9, w21, w9
	str	xzr, [x8, w9, sxtw #3]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_max_ccb,4,2                    ; @max_ccb
	.comm	_ilo_class,4,2                  ; @ilo_class
	.comm	_ilo_major,4,2                  ; @ilo_major
	.comm	_ilo_hwdev,8,3                  ; @ilo_hwdev
	.no_dead_strip	_ilo_remove
.subsections_via_symbols
