	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gmac_setup                     ## -- Begin function gmac_setup
	.p2align	4, 0x90
_gmac_setup:                            ## @gmac_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GMAC_VERSION@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_readl
	movzbl	%ah, %esi
	movzbl	%al, %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	_gmac_driver@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_PMT_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_GMAC_CONTROL_PS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_GMAC_CONTROL_DM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_GMAC_CONTROL_FES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_GMAC_MII_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_GMAC_MII_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_VERSION,8,3               ## @GMAC_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tGMAC - user ID: 0x%x, Synopsys ID: 0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_gmac_driver,4,2                ## @gmac_driver
	.comm	_PMT_SUPPORTED,4,2              ## @PMT_SUPPORTED
	.comm	_GMAC_CONTROL_PS,4,2            ## @GMAC_CONTROL_PS
	.comm	_GMAC_CONTROL_DM,4,2            ## @GMAC_CONTROL_DM
	.comm	_GMAC_CONTROL_FES,4,2           ## @GMAC_CONTROL_FES
	.comm	_GMAC_MII_ADDR,4,2              ## @GMAC_MII_ADDR
	.comm	_GMAC_MII_DATA,4,2              ## @GMAC_MII_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gmac_setup                     ; -- Begin function gmac_setup
	.p2align	2
_gmac_setup:                            ; @gmac_setup
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _GMAC_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMAC_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x0
	bl	_readl
	ubfx	w1, w0, #8, #8
	and	w2, w0, #0xff
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
Lloh8:
	adrp	x8, _gmac_driver@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gmac_driver@GOTPAGEOFF]
Lloh10:
	adrp	x9, _PMT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PMT_SUPPORTED@GOTPAGEOFF]
	str	x8, [x0, #24]
Lloh12:
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _GMAC_CONTROL_PS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GMAC_CONTROL_PS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh16:
	adrp	x8, _GMAC_CONTROL_DM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GMAC_CONTROL_DM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _GMAC_CONTROL_FES@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GMAC_CONTROL_FES@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh22:
	adrp	x8, _GMAC_MII_ADDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GMAC_MII_ADDR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _GMAC_MII_DATA@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GMAC_MII_DATA@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_VERSION,8,3               ; @GMAC_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tGMAC - user ID: 0x%x, Synopsys ID: 0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_gmac_driver,4,2                ; @gmac_driver
	.comm	_PMT_SUPPORTED,4,2              ; @PMT_SUPPORTED
	.comm	_GMAC_CONTROL_PS,4,2            ; @GMAC_CONTROL_PS
	.comm	_GMAC_CONTROL_DM,4,2            ; @GMAC_CONTROL_DM
	.comm	_GMAC_CONTROL_FES,4,2           ; @GMAC_CONTROL_FES
	.comm	_GMAC_MII_ADDR,4,2              ; @GMAC_MII_ADDR
	.comm	_GMAC_MII_DATA,4,2              ; @GMAC_MII_DATA
.subsections_via_symbols
