	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_lapbeth_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$24, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, 16(%rax)
	movq	%r14, %rdi
	callq	_dev_hold
	movq	%r14, 8(%r12)
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_register_netdevice
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	negl	%ebx
	movq	%r14, %rdi
	callq	_dev_put
	movq	%r15, %rdi
	callq	_free_netdev
	jmp	LBB0_3
LBB0_2:
	movq	_lapbeth_devices@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_list_add_rcu
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.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, _NET_NAME_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _lapbeth_setup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lapbeth_setup@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #24
	bl	_alloc_netdev
	cbz	x0, LBB0_3
; %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]
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_register_netdevice
	cbz	x0, LBB0_4
; %bb.2:
	neg	w21, w22
	mov	x0, x19
	bl	_dev_put
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_5
LBB0_3:
	neg	w21, w21
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x1, _lapbeth_devices@GOTPAGE
Lloh15:
	ldr	x1, [x1, _lapbeth_devices@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add_rcu
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lapb%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.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
