	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpq_new_device
_bpq_new_device:                        ## @bpq_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	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bpq_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$32, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_dev_hold
	movq	%r14, 24(%r15)
	movq	%r12, 16(%r15)
	movl	8(%r15), %edi
	callq	_eth_broadcast_addr
	movl	4(%r15), %edi
	callq	_eth_broadcast_addr
	movq	%r12, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_dev_put
	movq	%r12, %rdi
	callq	_free_netdev
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_bpq_devices@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_list_add_rcu
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bpq%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_bpq_setup,4,2                  ## @bpq_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bpq_devices,4,2                ## @bpq_devices
	.no_dead_strip	_bpq_new_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpq_new_device
_bpq_new_device:                        ; @bpq_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, _NET_NAME_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _bpq_setup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bpq_setup@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #32
	bl	_alloc_netdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_dev_hold
	stp	x20, x19, [x21, #16]
	ldr	w0, [x21, #8]
	bl	_eth_broadcast_addr
	ldr	w0, [x21, #4]
	bl	_eth_broadcast_addr
	mov	x0, x20
	bl	_register_netdevice
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_dev_put
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x1, _bpq_devices@GOTPAGE
Lloh12:
	ldr	x1, [x1, _bpq_devices@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add_rcu
LBB0_5:
	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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bpq%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_bpq_setup,4,2                  ; @bpq_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bpq_devices,4,2                ; @bpq_devices
	.no_dead_strip	_bpq_new_device
.subsections_via_symbols
