	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lapbeth_new_device
_lapbeth_new_device:                    ## @lapbeth_new_device
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_lapbeth_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$24, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	%r14, %rdi
	callq	_dev_hold
	movq	%r14, 8(%r15)
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dev_alloc_name
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_register_netdevice
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movq	_lapbeth_devices@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_list_add_rcu
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r13d
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_put
	movq	%rbx, %rdi
	callq	_free_netdev
	movq	%r15, %rdi
	callq	_kfree
	movl	%r13d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lapb%d"

	.comm	_lapbeth_setup,4,2              ## @lapbeth_setup
	.comm	_EIO,4,2                        ## @EIO
	.comm	_lapbeth_devices,4,2            ## @lapbeth_devices
	.no_dead_strip	_lapbeth_new_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lapbeth_new_device
_lapbeth_new_device:                    ; @lapbeth_new_device
	.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	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_ASSERT_RTNL
Lloh3:
	adrp	x8, _lapbeth_setup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lapbeth_setup@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #24
	bl	_alloc_netdev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x20, [x0, #16]
	mov	x0, x19
	bl	_dev_hold
	str	x19, [x21, #8]
	ldr	w1, [x20]
	mov	x0, x20
	bl	_dev_alloc_name
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_register_netdevice
	cbz	x0, LBB0_7
; %bb.3:
	neg	w22, w22
	b	LBB0_6
LBB0_4:
	neg	w22, w21
	b	LBB0_8
LBB0_5:
	mov	x22, x0
LBB0_6:
	mov	x0, x19
	bl	_dev_put
	mov	x0, x20
	bl	_free_netdev
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x1, _lapbeth_devices@GOTPAGE
Lloh12:
	ldr	x1, [x1, _lapbeth_devices@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add_rcu
	mov	w22, #0
LBB0_8:
	mov	x0, x22
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lapb%d"

	.comm	_lapbeth_setup,4,2              ; @lapbeth_setup
	.comm	_EIO,4,2                        ; @EIO
	.comm	_lapbeth_devices,4,2            ; @lapbeth_devices
	.no_dead_strip	_lapbeth_new_device
.subsections_via_symbols
