	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function veth_probe_one
_veth_probe_one:                        ## @veth_probe_one
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_vio_get_attribute
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_vio_get_attribute
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movl	$40, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	36(%rax), %rdi
	callq	_spin_lock_init
	leaq	32(%rbx), %rdi
	callq	_rwlock_init
	movq	$0, 24(%rbx)
	movq	_HVMAXARCHITECTEDLPS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.7:
	movl	$32768, %r13d                   ## imm = 0x8000
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r13d
	xorl	%r14d, %r14d
	movq	_this_lp@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
	cmpl	(%r15), %r14d
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r12), %r14d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %edi
	callq	_HvLpConfig_getVirtualLanIndexMapForLp
	testl	%r13d, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, (%rbx)
	jmp	LBB0_11
LBB0_12:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 16(%rbx)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	24(%r15), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_memcpy
	movq	_VETH_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	leaq	8(%rbx), %rdi
	movl	(%r14), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movq	_veth_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_SET_ETHTOOL_OPS
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_veth_error
	movq	%r15, %rdi
	callq	_free_netdev
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_14:
	movq	%rbx, %r14
	addq	$4, %r14
	movq	_veth_port_ktype@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_kobject_init
	movq	%r15, %rsi
	addq	$4, %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	callq	_kobject_add
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_veth_error
LBB0_16:
	movl	(%r15), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.7(%rip), %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_veth_info
	jmp	LBB0_17
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_veth_error
LBB0_17:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local-mac-address"

L_.str.1:                               ## @.str.1
	.asciz	"mac-address"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to fetch MAC address from device tree.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to allocate net_device structure!\n"

	.comm	_HVMAXARCHITECTEDLPS,4,2        ## @HVMAXARCHITECTEDLPS
	.comm	_this_lp,4,2                    ## @this_lp
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_VETH_MAX_MTU,4,2               ## @VETH_MAX_MTU
	.comm	_veth_netdev_ops,4,2            ## @veth_netdev_ops
	.comm	_ops,4,2                        ## @ops
L_.str.4:                               ## @.str.4
	.asciz	"Failed registering net device for vlan%d.\n"

	.comm	_veth_port_ktype,4,2            ## @veth_port_ktype
L_.str.5:                               ## @.str.5
	.asciz	"veth_port"

L_.str.6:                               ## @.str.6
	.asciz	"Failed adding port for %s to sysfs.\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s attached to iSeries vlan %d (LPAR map = 0x%.4X)\n"

	.no_dead_strip	_veth_probe_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function veth_probe_one
_veth_probe_one:                        ; @veth_probe_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_vio_get_attribute
	mov	x23, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_vio_get_attribute
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_2:
	mov	w0, #40
	bl	_alloc_etherdev
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.3:
	mov	x0, x20
	bl	_netdev_priv
	mov	x22, x0
	add	x0, x0, #36
	bl	_spin_lock_init
	add	x0, x22, #32
	bl	_rwlock_init
	str	xzr, [x22, #24]
Lloh4:
	adrp	x25, _HVMAXARCHITECTEDLPS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HVMAXARCHITECTEDLPS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w24, #0
	mov	w8, #32768
	lsr	w26, w8, w19
Lloh6:
	adrp	x27, _this_lp@GOTPAGE
Lloh7:
	ldr	x27, [x27, _this_lp@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	ldr	w8, [x25]
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w24, w8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_HvLpConfig_getVirtualLanIndexMapForLp
	tst	w0, w26
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w8, w28, w24
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	b	LBB0_5
LBB0_9:
	str	x21, [x22, #16]
	ldr	x0, [x20, #24]
Lloh8:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x1, x23
	bl	_memcpy
Lloh10:
	adrp	x8, _VETH_MAX_MTU@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VETH_MAX_MTU@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	add	x0, x22, #8
	ldr	w2, [x24]
	mov	x1, x23
	bl	_memcpy
Lloh13:
	adrp	x8, _veth_netdev_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _veth_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh15:
	adrp	x1, _ops@GOTPAGE
Lloh16:
	ldr	x1, [x1, _ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_SET_ETHTOOL_OPS
	mov	x0, x20
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_register_netdev
	cbz	w0, LBB0_12
; %bb.10:
	str	x19, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_veth_error
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_16
LBB0_11:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_veth_error
	b	LBB0_17
LBB0_12:
	add	x21, x22, #4
Lloh21:
	adrp	x1, _veth_port_ktype@GOTPAGE
Lloh22:
	ldr	x1, [x1, _veth_port_ktype@GOTPAGEOFF]
	mov	x0, x21
	bl	_kobject_init
	add	x1, x20, #4
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_kobject_add
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_veth_error
LBB0_14:
	ldr	w1, [x20]
	ldr	w3, [x22]
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x2, x19
	bl	_veth_info
	b	LBB0_17
LBB0_15:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_veth_error
LBB0_16:
	mov	x20, #0
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local-mac-address"

l_.str.1:                               ; @.str.1
	.asciz	"mac-address"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to fetch MAC address from device tree.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to allocate net_device structure!\n"

	.comm	_HVMAXARCHITECTEDLPS,4,2        ; @HVMAXARCHITECTEDLPS
	.comm	_this_lp,4,2                    ; @this_lp
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_VETH_MAX_MTU,4,2               ; @VETH_MAX_MTU
	.comm	_veth_netdev_ops,4,2            ; @veth_netdev_ops
	.comm	_ops,4,2                        ; @ops
l_.str.4:                               ; @.str.4
	.asciz	"Failed registering net device for vlan%d.\n"

	.comm	_veth_port_ktype,4,2            ; @veth_port_ktype
l_.str.5:                               ; @.str.5
	.asciz	"veth_port"

l_.str.6:                               ; @.str.6
	.asciz	"Failed adding port for %s to sysfs.\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s attached to iSeries vlan %d (LPAR map = 0x%.4X)\n"

	.no_dead_strip	_veth_probe_one
.subsections_via_symbols
