	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucc_geth_init_mac
_ucc_geth_init_mac:                     ## @ucc_geth_init_mac
	.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, %rbx
	movq	8(%rdi), %r14
	callq	_ucc_struct_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_ucc_geth_startup
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_adjust_enet_interface
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	%eax, %r15d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_netif_err
	movq	%rbx, %rdi
	callq	_ucc_geth_stop
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	12(%rax), %ecx
	movl	16(%rax), %r8d
	movl	20(%rax), %r9d
	movq	(%rbx), %rax
	pushq	%rax
	addq	$4, %rax
	pushq	%rax
	callq	_init_mac_station_addr_regs
	addq	$16, %rsp
	movq	_COMM_DIR_RX_AND_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ugeth_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r15d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot configure internal struct, aborting\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot configure net device, aborting\n"

	.comm	_COMM_DIR_RX_AND_TX,4,2         ## @COMM_DIR_RX_AND_TX
L_.str.2:                               ## @.str.2
	.asciz	"Cannot enable net device, aborting\n"

	.no_dead_strip	_ucc_geth_init_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucc_geth_init_mac
_ucc_geth_init_mac:                     ; @ucc_geth_init_mac
	.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	x19, x0
	ldr	x20, [x0, #8]
	bl	_ucc_struct_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _ifup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_ucc_geth_startup
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_adjust_enet_interface
	cbz	w0, LBB0_7
LBB0_4:
	mov	x21, x0
Lloh5:
	adrp	x8, _ifup@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x2, x20
	bl	_netif_err
	mov	x0, x19
	bl	_ucc_geth_stop
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
	ldr	x8, [x20]
	ldp	w0, w1, [x8]
	ldp	w2, w3, [x8, #8]
	ldp	w4, w5, [x8, #16]
	ldr	x7, [x19]
	add	x6, x7, #4
	bl	_init_mac_station_addr_regs
Lloh10:
	adrp	x8, _COMM_DIR_RX_AND_TX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMM_DIR_RX_AND_TX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ugeth_enable
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.8:
Lloh13:
	adrp	x8, _ifup@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot configure internal struct, aborting\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot configure net device, aborting\n"

	.comm	_COMM_DIR_RX_AND_TX,4,2         ; @COMM_DIR_RX_AND_TX
l_.str.2:                               ; @.str.2
	.asciz	"Cannot enable net device, aborting\n"

	.no_dead_strip	_ucc_geth_init_mac
.subsections_via_symbols
