	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_detach
_gc_detach:                             ## @gc_detach
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GC_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.9:
	movq	_gc_base@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rsi), %rsi
	cmpq	(%rdi), %rsi
	jne	LBB0_12
## %bb.2:
	cmpl	%eax, %ecx
	jne	LBB0_3
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ecx, %ecx
	cmpl	%eax, %ecx
	je	LBB0_13
LBB0_3:
	movq	_gc_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %r15
	movq	$0, (%rax,%rcx,8)
	movq	_GC_MAX_DEVICES@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_input_unregister_device
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_8:
	movl	8(%r15), %edi
	callq	_parport_unregister_device
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC_MAX_PORTS,4,2               ## @GC_MAX_PORTS
	.comm	_gc_base,8,3                    ## @gc_base
	.comm	_GC_MAX_DEVICES,4,2             ## @GC_MAX_DEVICES
	.no_dead_strip	_gc_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gc_detach
_gc_detach:                             ; @gc_detach
	.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
Lloh0:
	adrp	x8, _GC_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GC_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _gc_base@GOTPAGE
Lloh4:
	ldr	x10, [x10, _gc_base@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x11]
	ldr	x12, [x0]
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.5:
	cmp	w9, w8
	b.ne	LBB0_8
LBB0_6:
	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
LBB0_7:
	mov	w9, #0
	cmp	w9, w8
	b.eq	LBB0_6
LBB0_8:
Lloh6:
	adrp	x8, _gc_base@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gc_base@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, w9
	lsl	x9, x9, #3
	ldr	x19, [x8, x9]
	str	xzr, [x8, x9]
Lloh9:
	adrp	x20, _GC_MAX_DEVICES@GOTPAGE
Lloh10:
	ldr	x20, [x20, _GC_MAX_DEVICES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_input_unregister_device
	ldr	w8, [x20]
	b	LBB0_10
LBB0_13:
	ldr	w0, [x19, #8]
	bl	_parport_unregister_device
	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	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GC_MAX_PORTS,4,2               ; @GC_MAX_PORTS
	.comm	_gc_base,8,3                    ; @gc_base
	.comm	_GC_MAX_DEVICES,4,2             ; @GC_MAX_DEVICES
	.no_dead_strip	_gc_detach
.subsections_via_symbols
