	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemini_ethernet_init
_gemini_ethernet_init:                  ## @gemini_ethernet_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	movq	_GLOBAL_INTERRUPT_ENABLE_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_ENABLE_1_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_ENABLE_2_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_ENABLE_3_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_SELECT_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-855896128, %edi               ## imm = 0xCCFC0FC0
	callq	_writel
	movq	_GLOBAL_INTERRUPT_SELECT_1_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$15728642, %edi                 ## imm = 0xF00002
	callq	_writel
	movq	_GLOBAL_INTERRUPT_SELECT_2_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_SELECT_3_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_SELECT_4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-16777213, %edi                ## imm = 0xFF000003
	callq	_writel
	movq	_GLOBAL_INTERRUPT_STATUS_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_STATUS_1_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_STATUS_2_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_STATUS_3_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_INTERRUPT_STATUS_4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_GLOBAL_SW_FREEQ_BASE_SIZE_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_HW_FREEQ_BASE_SIZE_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_SWFQ_RWPTR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_GLOBAL_HWFQ_RWPTR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_DEFAULT_RX_BUF_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 4(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOBAL_INTERRUPT_ENABLE_0_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_0_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_1_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_1_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_2_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_2_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_3_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_3_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_4_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_4_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_0_REG,8,3 ## @GLOBAL_INTERRUPT_SELECT_0_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_1_REG,8,3 ## @GLOBAL_INTERRUPT_SELECT_1_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_2_REG,8,3 ## @GLOBAL_INTERRUPT_SELECT_2_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_3_REG,8,3 ## @GLOBAL_INTERRUPT_SELECT_3_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_4_REG,8,3 ## @GLOBAL_INTERRUPT_SELECT_4_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_0_REG,8,3 ## @GLOBAL_INTERRUPT_STATUS_0_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_1_REG,8,3 ## @GLOBAL_INTERRUPT_STATUS_1_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_2_REG,8,3 ## @GLOBAL_INTERRUPT_STATUS_2_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_3_REG,8,3 ## @GLOBAL_INTERRUPT_STATUS_3_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_4_REG,8,3 ## @GLOBAL_INTERRUPT_STATUS_4_REG
	.comm	_GLOBAL_SW_FREEQ_BASE_SIZE_REG,8,3 ## @GLOBAL_SW_FREEQ_BASE_SIZE_REG
	.comm	_GLOBAL_HW_FREEQ_BASE_SIZE_REG,8,3 ## @GLOBAL_HW_FREEQ_BASE_SIZE_REG
	.comm	_GLOBAL_SWFQ_RWPTR_REG,8,3      ## @GLOBAL_SWFQ_RWPTR_REG
	.comm	_GLOBAL_HWFQ_RWPTR_REG,8,3      ## @GLOBAL_HWFQ_RWPTR_REG
	.comm	_DEFAULT_RX_BUF_ORDER,4,2       ## @DEFAULT_RX_BUF_ORDER
	.no_dead_strip	_gemini_ethernet_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemini_ethernet_init
_gemini_ethernet_init:                  ; @gemini_ethernet_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w20, #1
	str	w20, [x19]
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _GLOBAL_INTERRUPT_ENABLE_0_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_ENABLE_0_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _GLOBAL_INTERRUPT_ENABLE_1_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_ENABLE_1_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _GLOBAL_INTERRUPT_ENABLE_2_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_ENABLE_2_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _GLOBAL_INTERRUPT_ENABLE_3_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_ENABLE_3_REG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _GLOBAL_INTERRUPT_SELECT_0_REG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_SELECT_0_REG@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #4032
	movk	w0, #52476, lsl #16
	bl	_writel
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x9, _GLOBAL_INTERRUPT_SELECT_1_REG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_SELECT_1_REG@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #2
	movk	w0, #240, lsl #16
	bl	_writel
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _GLOBAL_INTERRUPT_SELECT_2_REG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_SELECT_2_REG@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh24:
	adrp	x9, _GLOBAL_INTERRUPT_SELECT_3_REG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_SELECT_3_REG@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _GLOBAL_INTERRUPT_SELECT_4_REG@GOTPAGE
Lloh28:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_SELECT_4_REG@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-16777213
	bl	_writel
	ldr	x8, [x19, #16]
Lloh30:
	adrp	x9, _GLOBAL_INTERRUPT_STATUS_0_REG@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_STATUS_0_REG@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh33:
	adrp	x9, _GLOBAL_INTERRUPT_STATUS_1_REG@GOTPAGE
Lloh34:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_STATUS_1_REG@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh36:
	adrp	x9, _GLOBAL_INTERRUPT_STATUS_2_REG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_STATUS_2_REG@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh39:
	adrp	x9, _GLOBAL_INTERRUPT_STATUS_3_REG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_STATUS_3_REG@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh42:
	adrp	x9, _GLOBAL_INTERRUPT_STATUS_4_REG@GOTPAGE
Lloh43:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_STATUS_4_REG@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #16]
Lloh45:
	adrp	x9, _GLOBAL_SW_FREEQ_BASE_SIZE_REG@GOTPAGE
Lloh46:
	ldr	x9, [x9, _GLOBAL_SW_FREEQ_BASE_SIZE_REG@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh48:
	adrp	x9, _GLOBAL_HW_FREEQ_BASE_SIZE_REG@GOTPAGE
Lloh49:
	ldr	x9, [x9, _GLOBAL_HW_FREEQ_BASE_SIZE_REG@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh51:
	adrp	x9, _GLOBAL_SWFQ_RWPTR_REG@GOTPAGE
Lloh52:
	ldr	x9, [x9, _GLOBAL_SWFQ_RWPTR_REG@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh54:
	adrp	x9, _GLOBAL_HWFQ_RWPTR_REG@GOTPAGE
Lloh55:
	ldr	x9, [x9, _GLOBAL_HWFQ_RWPTR_REG@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh57:
	adrp	x8, _DEFAULT_RX_BUF_ORDER@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DEFAULT_RX_BUF_ORDER@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	stp	w20, w8, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOBAL_INTERRUPT_ENABLE_0_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_0_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_1_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_1_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_2_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_2_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_3_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_3_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_4_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_4_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_0_REG,8,3 ; @GLOBAL_INTERRUPT_SELECT_0_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_1_REG,8,3 ; @GLOBAL_INTERRUPT_SELECT_1_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_2_REG,8,3 ; @GLOBAL_INTERRUPT_SELECT_2_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_3_REG,8,3 ; @GLOBAL_INTERRUPT_SELECT_3_REG
	.comm	_GLOBAL_INTERRUPT_SELECT_4_REG,8,3 ; @GLOBAL_INTERRUPT_SELECT_4_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_0_REG,8,3 ; @GLOBAL_INTERRUPT_STATUS_0_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_1_REG,8,3 ; @GLOBAL_INTERRUPT_STATUS_1_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_2_REG,8,3 ; @GLOBAL_INTERRUPT_STATUS_2_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_3_REG,8,3 ; @GLOBAL_INTERRUPT_STATUS_3_REG
	.comm	_GLOBAL_INTERRUPT_STATUS_4_REG,8,3 ; @GLOBAL_INTERRUPT_STATUS_4_REG
	.comm	_GLOBAL_SW_FREEQ_BASE_SIZE_REG,8,3 ; @GLOBAL_SW_FREEQ_BASE_SIZE_REG
	.comm	_GLOBAL_HW_FREEQ_BASE_SIZE_REG,8,3 ; @GLOBAL_HW_FREEQ_BASE_SIZE_REG
	.comm	_GLOBAL_SWFQ_RWPTR_REG,8,3      ; @GLOBAL_SWFQ_RWPTR_REG
	.comm	_GLOBAL_HWFQ_RWPTR_REG,8,3      ; @GLOBAL_HWFQ_RWPTR_REG
	.comm	_DEFAULT_RX_BUF_ORDER,4,2       ; @DEFAULT_RX_BUF_ORDER
	.no_dead_strip	_gemini_ethernet_init
.subsections_via_symbols
