	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_pc_unregister_port     ## -- Begin function parport_pc_unregister_port
	.p2align	4, 0x90
_parport_pc_unregister_port:            ## @parport_pc_unregister_port
	.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, %rbx
	movq	24(%rdi), %r15
	movq	56(%rdi), %r14
	callq	_parport_remove_port
	movq	_ports_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_list_del_init
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	8(%rbx), %rdi
	movq	_PARPORT_IRQ_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_2:
	movq	48(%rbx), %rdi
	movl	$3, %esi
	callq	_release_region
	movl	16(%rbx), %esi
	cmpl	$4, %esi
	jl	LBB0_4
## %bb.3:
	movq	48(%rbx), %rdi
	addq	$3, %rdi
	addl	$-3, %esi
	callq	_release_region
LBB0_4:
	movq	_PARPORT_MODE_ECP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%rbx)
	je	LBB0_6
## %bb.5:
	movq	40(%rbx), %rdi
	movl	$3, %esi
	callq	_release_region
LBB0_6:
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_parport_del_port
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ports_lock,4,2                 ## @ports_lock
	.comm	_PARPORT_IRQ_NONE,8,3           ## @PARPORT_IRQ_NONE
	.comm	_PARPORT_MODE_ECP,4,2           ## @PARPORT_MODE_ECP
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PARPORT_DMA_NONE,8,3           ## @PARPORT_DMA_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_pc_unregister_port     ; -- Begin function parport_pc_unregister_port
	.p2align	2
_parport_pc_unregister_port:            ; @parport_pc_unregister_port
	.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	x20, x0
	ldr	x22, [x0, #24]
	ldr	x19, [x0, #56]
	bl	_parport_remove_port
Lloh0:
	adrp	x21, _ports_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ports_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	add	x0, x22, #16
	bl	_list_del_init
	mov	x0, x21
	bl	_spin_unlock
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x8, _PARPORT_IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PARPORT_IRQ_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_free_irq
LBB0_2:
	ldr	x0, [x20, #48]
	mov	w1, #3
	bl	_release_region
	ldr	w8, [x20, #16]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.3:
	ldr	x9, [x20, #48]
	add	x0, x9, #3
	sub	w1, w8, #3
	bl	_release_region
LBB0_4:
	ldr	w8, [x20, #20]
Lloh5:
	adrp	x9, _PARPORT_MODE_ECP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PARPORT_MODE_ECP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x20, #40]
	mov	w1, #3
	bl	_release_region
LBB0_6:
	ldr	x0, [x20, #24]
	bl	_kfree
	mov	x0, x20
	bl	_parport_del_port
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ports_lock,4,2                 ; @ports_lock
	.comm	_PARPORT_IRQ_NONE,8,3           ; @PARPORT_IRQ_NONE
	.comm	_PARPORT_MODE_ECP,4,2           ; @PARPORT_MODE_ECP
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PARPORT_DMA_NONE,8,3           ; @PARPORT_DMA_NONE
.subsections_via_symbols
