	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapb_unregister                ## -- Begin function lapb_unregister
	.p2align	4, 0x90
_lapb_unregister:                       ## @lapb_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_LAPB_BADTOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_lapb_list_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	%rbx, %rdi
	callq	___lapb_devtostruct
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lapb_stop_t1timer
	movq	%rbx, %rdi
	callq	_lapb_stop_t2timer
	movq	%rbx, %rdi
	callq	_lapb_clear_queues
	movq	%rbx, %rdi
	callq	___lapb_remove_cb
	movq	%rbx, %rdi
	callq	_lapb_put
	movq	_LAPB_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	_lapb_list_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAPB_BADTOKEN,4,2              ## @LAPB_BADTOKEN
	.comm	_lapb_list_lock,4,2             ## @lapb_list_lock
	.comm	_LAPB_OK,4,2                    ## @LAPB_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapb_unregister                ; -- Begin function lapb_unregister
	.p2align	2
_lapb_unregister:                       ; @lapb_unregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _LAPB_BADTOKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAPB_BADTOKEN@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, _lapb_list_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _lapb_list_lock@GOTPAGEOFF]
	bl	_write_lock_bh
	mov	x0, x20
	bl	___lapb_devtostruct
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_lapb_stop_t1timer
	mov	x0, x20
	bl	_lapb_stop_t2timer
	mov	x0, x20
	bl	_lapb_clear_queues
	mov	x0, x20
	bl	___lapb_remove_cb
	mov	x0, x20
	bl	_lapb_put
Lloh5:
	adrp	x8, _LAPB_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LAPB_OK@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
LBB0_2:
Lloh8:
	adrp	x0, _lapb_list_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _lapb_list_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LAPB_BADTOKEN,4,2              ; @LAPB_BADTOKEN
	.comm	_lapb_list_lock,4,2             ; @lapb_list_lock
	.comm	_LAPB_OK,4,2                    ; @LAPB_OK
.subsections_via_symbols
