	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_netdev_probe
_ntb_netdev_probe:                      ## @ntb_netdev_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, %r15
	movl	(%rdi), %edi
	callq	_dev_ntb
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movl	$24, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, 16(%rax)
	movq	%r14, 8(%rax)
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_IFF_LIVE_ADDR_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 72(%rbx)
	movl	%eax, 68(%rbx)
	movq	_NTB_TX_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, 60(%rbx)
	movl	52(%rbx), %edi
	callq	_eth_random_addr
	movl	56(%rbx), %edi
	movl	48(%rbx), %edx
	movl	52(%rbx), %esi
	callq	_memcpy
	movq	_ntb_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_ntb_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_ETH_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ntb_netdev_handlers@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ntb_transport_create_queue
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %edi
	callq	_ntb_transport_max_size
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_ntb_transport_free_queue
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movq	%rbx, %rdi
	callq	_free_netdev
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_IFF_LIVE_ADDR_CHANGE,4,2       ## @IFF_LIVE_ADDR_CHANGE
	.comm	_NTB_TX_TIMEOUT_MS,4,2          ## @NTB_TX_TIMEOUT_MS
	.comm	_ntb_netdev_ops,4,2             ## @ntb_netdev_ops
	.comm	_ntb_ethtool_ops,4,2            ## @ntb_ethtool_ops
	.comm	_ETH_MAX_MTU,4,2                ## @ETH_MAX_MTU
	.comm	_ntb_netdev_handlers,4,2        ## @ntb_netdev_handlers
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s created\n"

	.no_dead_strip	_ntb_netdev_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_netdev_probe
_ntb_netdev_probe:                      ; @ntb_netdev_probe
	.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
	ldr	w0, [x0]
	bl	_dev_ntb
	ldr	x21, [x0]
	cbz	x21, LBB0_5
; %bb.1:
	mov	w0, #24
	bl	_alloc_etherdev
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_netdev_priv
	mov	x22, x0
	stp	x21, x19, [x0, #8]
Lloh0:
	adrp	x8, _NETIF_F_HIGHDMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IFF_LIVE_ADDR_CHANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_LIVE_ADDR_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19, #72]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #68]
	str	w8, [x19, #64]
Lloh6:
	adrp	x8, _NTB_TX_TIMEOUT_MS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NTB_TX_TIMEOUT_MS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	str	w0, [x19, #60]
	ldr	w0, [x19, #52]
	bl	_eth_random_addr
	ldp	w1, w0, [x19, #52]
	ldr	w2, [x19, #48]
	bl	_memcpy
Lloh9:
	adrp	x8, _ntb_netdev_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ntb_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh11:
	adrp	x8, _ntb_ethtool_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ntb_ethtool_ops@GOTPAGEOFF]
	stp	xzr, x8, [x19, #24]
Lloh13:
	adrp	x8, _ETH_MAX_MTU@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_MAX_MTU@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh16:
	adrp	x2, _ntb_netdev_handlers@GOTPAGE
Lloh17:
	ldr	x2, [x2, _ntb_netdev_handlers@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_ntb_transport_create_queue
	str	w0, [x22]
	cbz	w0, LBB0_8
; %bb.3:
	bl	_ntb_transport_max_size
Lloh18:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sub	x8, x0, x8
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_register_netdev
	mov	x23, x0
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x22]
	bl	_ntb_transport_free_queue
	b	LBB0_9
LBB0_5:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_8:
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	ldr	w2, [x19]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_info
LBB0_11:
	mov	x0, x23
	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	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_IFF_LIVE_ADDR_CHANGE,4,2       ; @IFF_LIVE_ADDR_CHANGE
	.comm	_NTB_TX_TIMEOUT_MS,4,2          ; @NTB_TX_TIMEOUT_MS
	.comm	_ntb_netdev_ops,4,2             ; @ntb_netdev_ops
	.comm	_ntb_ethtool_ops,4,2            ; @ntb_ethtool_ops
	.comm	_ETH_MAX_MTU,4,2                ; @ETH_MAX_MTU
	.comm	_ntb_netdev_handlers,4,2        ; @ntb_netdev_handlers
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s created\n"

	.no_dead_strip	_ntb_netdev_probe
.subsections_via_symbols
