	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbnet_open
_tbnet_open:                            ## @tbnet_open
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %r12
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_TBNET_RING_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_RING_FLAG_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %esi
	callq	_tb_ring_alloc_tx
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, 16(%rbx)
	movq	_TBIP_PDF_FRAME_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_TBIP_PDF_FRAME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	(%r12), %rcx
	movl	(%rcx), %edi
	movl	(%r13), %edx
	movq	_RING_FLAG_E2E@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RING_FLAG_FRAME@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_tbnet_start_poll@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movl	$-1, %esi
	movl	%r15d, %r8d
	movl	%eax, %r9d
	pushq	%rbx
	pushq	%r10
	callq	_tb_ring_alloc_rx
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_start_login
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	16(%rbx), %rdi
	callq	_tb_ring_free
	movq	$0, 16(%rbx)
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBNET_RING_SIZE,4,2            ## @TBNET_RING_SIZE
	.comm	_RING_FLAG_FRAME,4,2            ## @RING_FLAG_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate Tx ring\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TBIP_PDF_FRAME_START,4,2       ## @TBIP_PDF_FRAME_START
	.comm	_TBIP_PDF_FRAME_END,4,2         ## @TBIP_PDF_FRAME_END
	.comm	_RING_FLAG_E2E,4,2              ## @RING_FLAG_E2E
	.comm	_tbnet_start_poll,4,2           ## @tbnet_start_poll
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate Rx ring\n"

	.no_dead_strip	_tbnet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbnet_open
_tbnet_open:                            ; @tbnet_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x0, #24]
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh0:
	adrp	x24, _TBNET_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TBNET_RING_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x23, _RING_FLAG_FRAME@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RING_FLAG_FRAME@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	w1, #-1
	bl	_tb_ring_alloc_tx
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x19, #16]
Lloh4:
	adrp	x8, _TBIP_PDF_FRAME_START@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TBIP_PDF_FRAME_START@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh7:
	adrp	x8, _TBIP_PDF_FRAME_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TBIP_PDF_FRAME_END@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_BIT
	mov	x5, x0
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldr	w2, [x24]
Lloh10:
	adrp	x8, _RING_FLAG_E2E@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RING_FLAG_E2E@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh12:
	ldr	w8, [x8]
	orr	w3, w8, w9
Lloh13:
	adrp	x8, _tbnet_start_poll@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tbnet_start_poll@GOTPAGEOFF]
Lloh15:
	ldr	w6, [x8]
	mov	w1, #-1
	mov	x4, x21
	mov	x7, x19
	bl	_tb_ring_alloc_rx
	cbz	x0, LBB0_4
; %bb.2:
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_napi_enable
	mov	x0, x19
	bl	_start_login
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	x0, [x19, #16]
	bl	_tb_ring_free
	str	xzr, [x19, #16]
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TBNET_RING_SIZE,4,2            ; @TBNET_RING_SIZE
	.comm	_RING_FLAG_FRAME,4,2            ; @RING_FLAG_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate Tx ring\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TBIP_PDF_FRAME_START,4,2       ; @TBIP_PDF_FRAME_START
	.comm	_TBIP_PDF_FRAME_END,4,2         ; @TBIP_PDF_FRAME_END
	.comm	_RING_FLAG_E2E,4,2              ; @RING_FLAG_E2E
	.comm	_tbnet_start_poll,4,2           ; @tbnet_start_poll
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate Rx ring\n"

	.no_dead_strip	_tbnet_open
.subsections_via_symbols
