	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapb_register                  ## -- Begin function lapb_register
	.p2align	4, 0x90
_lapb_register:                         ## @lapb_register
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_LAPB_BADTOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_lapb_list_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	%r12, %rdi
	callq	___lapb_devtostruct
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_lapb_put
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_lapb_create_cb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, 8(%rax)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	___lapb_insert_cb
	movq	%rbx, %rdi
	callq	_lapb_start_t1timer
	movq	_LAPB_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_LAPB_NOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
LBB0_6:
	movq	_lapb_list_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_NOMEM,4,2                 ## @LAPB_NOMEM
	.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_register                  ; -- Begin function lapb_register
	.p2align	2
_lapb_register:                         ; @lapb_register
	.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, x1
	mov	x21, 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, x21
	bl	___lapb_devtostruct
	cbz	x0, LBB0_2
; %bb.1:
	bl	_lapb_put
	b	LBB0_6
LBB0_2:
	bl	_lapb_create_cb
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
	str	x21, [x0, #8]
	ldr	w8, [x20]
	str	w8, [x0]
	bl	___lapb_insert_cb
	mov	x0, x19
	bl	_lapb_start_t1timer
Lloh5:
	adrp	x8, _LAPB_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LAPB_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _LAPB_NOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LAPB_NOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w19, [x8]
LBB0_6:
Lloh9:
	adrp	x0, _lapb_list_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _lapb_list_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LAPB_BADTOKEN,4,2              ; @LAPB_BADTOKEN
	.comm	_lapb_list_lock,4,2             ; @lapb_list_lock
	.comm	_LAPB_NOMEM,4,2                 ; @LAPB_NOMEM
	.comm	_LAPB_OK,4,2                    ; @LAPB_OK
.subsections_via_symbols
