	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbnet_probe
_tbnet_probe:                           ## @tbnet_probe
	.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	_tb_service_parent
	movq	%rax, %r13
	movl	$80, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	76(%rax), %rdi
	movq	_tbnet_login_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	72(%rbx), %rdi
	movq	_tbnet_connected_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	68(%rbx), %rdi
	movq	_tbnet_disconnect_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	64(%rbx), %rdi
	callq	_mutex_init
	leaq	60(%rbx), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	56(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r14, 48(%rbx)
	movq	%r15, 40(%rbx)
	movq	%r13, 32(%rbx)
	movq	%r15, %rdi
	callq	_tbnet_generate_mac
	movl	40(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_tbnet_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_ALL_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	addl	$4, 8(%r15)
	leaq	24(%rbx), %rsi
	movq	_tbnet_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_netif_napi_add
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_TBNET_MAX_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 16(%r15)
	movq	_tbnet_svc_uuid@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_tbnet_handle_packet@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, (%rbx)
	movq	%rbx, %rdi
	callq	_tb_register_protocol_handler
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tb_service_set_drvdata
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_tb_unregister_protocol_handler
	movq	%r15, %rdi
	callq	_free_netdev
	movl	%r14d, %r12d
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	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
	.comm	_tbnet_login_work,4,2           ## @tbnet_login_work
	.comm	_tbnet_connected_work,4,2       ## @tbnet_connected_work
	.comm	_tbnet_disconnect_work,4,2      ## @tbnet_disconnect_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"thunderbolt%d"

	.comm	_tbnet_netdev_ops,4,2           ## @tbnet_netdev_ops
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_ALL_TSO,4,2            ## @NETIF_F_ALL_TSO
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_tbnet_poll,4,2                 ## @tbnet_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_TBNET_MAX_MTU,8,3              ## @TBNET_MAX_MTU
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_tbnet_svc_uuid,4,2             ## @tbnet_svc_uuid
	.comm	_tbnet_handle_packet,4,2        ## @tbnet_handle_packet
	.no_dead_strip	_tbnet_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbnet_probe
_tbnet_probe:                           ; @tbnet_probe
	.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, x0
	bl	_tb_service_parent
	mov	x22, x0
	mov	w0, #80
	bl	_alloc_etherdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	add	x0, x0, #76
Lloh0:
	adrp	x8, _tbnet_login_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tbnet_login_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x21, #72
Lloh3:
	adrp	x8, _tbnet_connected_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tbnet_connected_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #68
Lloh6:
	adrp	x8, _tbnet_disconnect_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tbnet_disconnect_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #64
	bl	_mutex_init
	add	x0, x21, #60
	mov	w1, #0
	bl	_atomic_set
	add	x0, x21, #56
	mov	w1, #0
	bl	_atomic_set
	stp	x19, x20, [x21, #40]
	str	x22, [x21, #32]
	mov	x0, x19
	bl	_tbnet_generate_mac
	ldr	w0, [x19, #40]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh11:
	adrp	x8, _tbnet_netdev_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tbnet_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #32]
Lloh13:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _NETIF_F_ALL_TSO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NETIF_F_ALL_TSO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh28:
	adrp	x9, _NETIF_F_HIGHDMA@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	add	w9, w9, #4
	stp	w8, w9, [x19, #4]
	add	x1, x21, #24
Lloh31:
	adrp	x8, _tbnet_poll@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tbnet_poll@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_netif_napi_add
Lloh37:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh40:
	adrp	x8, _TBNET_MAX_MTU@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TBNET_MAX_MTU@GOTPAGEOFF]
Lloh42:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
Lloh45:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x19, #16]
Lloh46:
	adrp	x8, _tbnet_svc_uuid@GOTPAGE
Lloh47:
	ldr	x8, [x8, _tbnet_svc_uuid@GOTPAGEOFF]
	str	x8, [x21, #16]
Lloh48:
	adrp	x8, _tbnet_handle_packet@GOTPAGE
Lloh49:
	ldr	x8, [x8, _tbnet_handle_packet@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	str	x21, [x21]
	mov	x0, x21
	bl	_tb_register_protocol_handler
	mov	x0, x20
	mov	x1, x21
	bl	_tb_service_set_drvdata
	mov	x0, x19
	bl	_register_netdev
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_tb_unregister_protocol_handler
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_4
LBB0_3:
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tbnet_login_work,4,2           ; @tbnet_login_work
	.comm	_tbnet_connected_work,4,2       ; @tbnet_connected_work
	.comm	_tbnet_disconnect_work,4,2      ; @tbnet_disconnect_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"thunderbolt%d"

	.comm	_tbnet_netdev_ops,4,2           ; @tbnet_netdev_ops
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_ALL_TSO,4,2            ; @NETIF_F_ALL_TSO
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_tbnet_poll,4,2                 ; @tbnet_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_TBNET_MAX_MTU,8,3              ; @TBNET_MAX_MTU
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_tbnet_svc_uuid,4,2             ; @tbnet_svc_uuid
	.comm	_tbnet_handle_packet,4,2        ; @tbnet_handle_packet
	.no_dead_strip	_tbnet_probe
.subsections_via_symbols
