	.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), %r15
	callq	_ucc_struct_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_3:
	movq	%rbx, %rdi
	callq	_ucc_geth_startup
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_adjust_enet_interface
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	movl	(%r15), %esi
	callq	_ugeth_err
LBB0_12:
	movq	%rbx, %rdi
	callq	_ucc_geth_stop
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%r15), %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_14
## %bb.9:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Cannot configure internal struct, aborting."

L_.str.1:                               ## @.str.1
	.asciz	"%s: Cannot configure net device, aborting."

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

	.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	x21, [x0, #8]
	bl	_ucc_struct_init
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_ucc_geth_startup
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_adjust_enet_interface
	cbz	w0, LBB0_10
LBB0_5:
	mov	x20, x0
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_8
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	ldr	w1, [x21]
	bl	_ugeth_err
LBB0_8:
	mov	x0, x19
	bl	_ucc_geth_stop
LBB0_9:
	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
LBB0_10:
	ldr	x8, [x21, #8]
	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
Lloh4:
	adrp	x8, _COMM_DIR_RX_AND_TX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMM_DIR_RX_AND_TX@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ugeth_enable
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.11:
	mov	x0, x19
	bl	_netif_msg_ifup
	cbz	x0, LBB0_8
; %bb.12:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Cannot configure internal struct, aborting."

l_.str.1:                               ; @.str.1
	.asciz	"%s: Cannot configure net device, aborting."

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

	.no_dead_strip	_ucc_geth_init_mac
.subsections_via_symbols
