	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_init
_net_init:                              ## @net_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	_uboot_softc@GOTPCREL(%rip), %r14
	movq	%r14, 16(%rbx)
	movl	16(%r14), %edi
	callq	_ub_dev_open
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	(%rcx), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_panic
LBB0_2:
	movl	16(%r14), %edi
	callq	_ub_dev_get
	movl	(%r15), %edi
	movl	(%rax), %esi
	movl	$6, %edx
	callq	_memcpy
	movl	(%r15), %edi
	leaq	l_.str.1(%rip), %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_panic
LBB0_4:
	xorl	%eax, %eax
	callq	_get_env_net_params
	movq	_myip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 8(%r15)
LBB0_6:
	movq	8(%r14), %rcx
	movq	%rcx, (%r14)
	movq	_PKTALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_10:
	addq	%rcx, %rsi
	subq	%rdx, %rsi
	movq	%rsi, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_uboot_softc,24,3               ## @uboot_softc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d: initialisation failed with error %d"

	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	7

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"%s%d: empty ethernet address!"

	.comm	_myip,8,3                       ## @myip
	.comm	_PKTALIGN,8,3                   ## @PKTALIGN
	.no_dead_strip	_net_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_init
_net_init:                              ; @net_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x20, _uboot_softc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uboot_softc@GOTPAGEOFF]
	str	x20, [x21, #16]
	ldr	w0, [x20, #16]
	bl	_ub_dev_open
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x2, x8, [x21]
	ldr	x1, [x8]
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
	ldr	w0, [x20, #16]
	bl	_ub_dev_get
	ldr	w8, [x19]
	ldr	w1, [x0]
	mov	x0, x8
	mov	w2, #6
	bl	_memcpy
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_4
; %bb.3:
	ldp	x2, x8, [x21]
	ldr	x1, [x8]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_4:
	bl	_get_env_net_params
Lloh8:
	adrp	x8, _myip@GOTPAGE
Lloh9:
	ldr	x8, [x8, _myip@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [x19, #8]
LBB0_6:
	ldr	x8, [x20, #8]
	str	x8, [x20]
Lloh11:
	adrp	x9, _PKTALIGN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PKTALIGN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	udiv	x10, x8, x9
	msub	x10, x10, x9, x8
	cbz	x10, LBB0_8
; %bb.7:
	add	x8, x9, x8
	sub	x8, x8, x10
	str	x8, [x20]
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_uboot_softc,24,3               ; @uboot_softc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d: initialisation failed with error %d"

	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	7

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"%s%d: empty ethernet address!"

	.comm	_myip,8,3                       ; @myip
	.comm	_PKTALIGN,8,3                   ; @PKTALIGN
	.no_dead_strip	_net_init
.subsections_via_symbols
