	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_gmacclk_init
_aw_gmacclk_init:                       ## @aw_gmacclk_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_clknode_get_softc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_DEVICE_LOCK
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GMACCLK_READ
	movq	%rbx, %rdi
	callq	_DEVICE_UNLOCK
	movq	_GMAC_CLK_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_GMAC_CLK_SRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	_CLK_IDX_RGMII@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_CLK_IDX_MII@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_clknode_init_parent_idx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_CLK_SRC,4,2               ## @GMAC_CLK_SRC
	.comm	_GMAC_CLK_SRC_SHIFT,4,2         ## @GMAC_CLK_SRC_SHIFT
	.comm	_CLK_IDX_MII,4,2                ## @CLK_IDX_MII
	.comm	_CLK_IDX_RGMII,4,2              ## @CLK_IDX_RGMII
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_aw_gmacclk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_gmacclk_init
_aw_gmacclk_init:                       ; @aw_gmacclk_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_clknode_get_softc
	mov	x20, x0
	bl	_DEVICE_LOCK
	add	x1, sp, #12
	mov	x0, x20
	bl	_GMACCLK_READ
	mov	x0, x20
	bl	_DEVICE_UNLOCK
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _GMAC_CLK_SRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GMAC_CLK_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _GMAC_CLK_SRC_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GMAC_CLK_SRC_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _CLK_IDX_RGMII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLK_IDX_RGMII@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _CLK_IDX_MII@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLK_IDX_MII@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_clknode_init_parent_idx
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_CLK_SRC,4,2               ; @GMAC_CLK_SRC
	.comm	_GMAC_CLK_SRC_SHIFT,4,2         ; @GMAC_CLK_SRC_SHIFT
	.comm	_CLK_IDX_MII,4,2                ; @CLK_IDX_MII
	.comm	_CLK_IDX_RGMII,4,2              ; @CLK_IDX_RGMII
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_aw_gmacclk_init
.subsections_via_symbols
