	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_phylink_mac_config
_gswip_phylink_mac_config:              ## @gswip_phylink_mac_config
	.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
	movl	(%rcx), %edx
	leal	-128(%rdx), %eax
	cmpl	$8, %eax
	jae	LBB0_10
## %bb.1:
	movq	%rcx, %rbx
	movl	%esi, %r15d
	movq	8(%rdi), %r14
	movq	_GSWIP_MII_CFG_LDCLKDIS@GOTPCREL(%rip), %rcx
	cltq
	leaq	l_switch.table.gswip_phylink_mac_config(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movq	_GSWIP_MII_CFG_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_gswip_mii_mask_cfg
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.4:
	movq	_GSWIP_MII_PCDU_TXDLY_MASK@GOTPCREL(%rip), %rax
	movq	_GSWIP_MII_PCDU_RXDLY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_7
LBB0_10:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_8:
	movq	_GSWIP_MII_PCDU_TXDLY_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_GSWIP_MII_PCDU_RXDLY_MASK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
LBB0_7:
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gswip_mii_mask_pcdu            ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSWIP_MII_CFG_LDCLKDIS,4,2     ## @GSWIP_MII_CFG_LDCLKDIS
	.comm	_GSWIP_MII_CFG_MODE_MIIM,4,2    ## @GSWIP_MII_CFG_MODE_MIIM
	.comm	_GSWIP_MII_CFG_MODE_MIIP,4,2    ## @GSWIP_MII_CFG_MODE_MIIP
	.comm	_GSWIP_MII_CFG_MODE_RMIIM,4,2   ## @GSWIP_MII_CFG_MODE_RMIIM
	.comm	_GSWIP_MII_CFG_MODE_RGMII,4,2   ## @GSWIP_MII_CFG_MODE_RGMII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported interface: %d\n"

	.comm	_GSWIP_MII_CFG_MODE_MASK,4,2    ## @GSWIP_MII_CFG_MODE_MASK
	.comm	_GSWIP_MII_PCDU_TXDLY_MASK,4,2  ## @GSWIP_MII_PCDU_TXDLY_MASK
	.comm	_GSWIP_MII_PCDU_RXDLY_MASK,4,2  ## @GSWIP_MII_PCDU_RXDLY_MASK
	.no_dead_strip	_gswip_phylink_mac_config
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.gswip_phylink_mac_config
l_switch.table.gswip_phylink_mac_config:
	.quad	_GSWIP_MII_CFG_MODE_RMIIM
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_MIIP
	.quad	_GSWIP_MII_CFG_MODE_MIIM
	.quad	_GSWIP_MII_CFG_MODE_MIIM

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_phylink_mac_config
_gswip_phylink_mac_config:              ; @gswip_phylink_mac_config
	.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
	ldr	w2, [x3]
	sub	w8, w2, #128
	cmp	w8, #8
	b.hs	LBB0_5
; %bb.1:
	mov	x21, x3
	mov	x19, x1
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x9, _GSWIP_MII_CFG_LDCLKDIS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GSWIP_MII_CFG_LDCLKDIS@GOTPAGEOFF]
Lloh2:
	adrp	x10, l_switch.table.gswip_phylink_mac_config@PAGE
Lloh3:
	add	x10, x10, l_switch.table.gswip_phylink_mac_config@PAGEOFF
	ldr	x8, [x10, w8, sxtw #3]
Lloh4:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w2, w8, w9
Lloh5:
	adrp	x8, _GSWIP_MII_CFG_MODE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSWIP_MII_CFG_MODE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_gswip_mii_mask_cfg
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #131
	b.ne	LBB0_10
; %bb.4:
Lloh8:
	adrp	x8, _GSWIP_MII_PCDU_TXDLY_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSWIP_MII_PCDU_TXDLY_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GSWIP_MII_PCDU_RXDLY_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GSWIP_MII_PCDU_RXDLY_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_9
LBB0_5:
	ldr	w0, [x0]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_6:
Lloh16:
	adrp	x8, _GSWIP_MII_PCDU_TXDLY_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSWIP_MII_PCDU_TXDLY_MASK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _GSWIP_MII_PCDU_RXDLY_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSWIP_MII_PCDU_RXDLY_MASK@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
LBB0_9:
	mov	x0, x20
	mov	w2, #0
	mov	x3, x19
	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
	b	_gswip_mii_mask_pcdu
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GSWIP_MII_CFG_LDCLKDIS,4,2     ; @GSWIP_MII_CFG_LDCLKDIS
	.comm	_GSWIP_MII_CFG_MODE_MIIM,4,2    ; @GSWIP_MII_CFG_MODE_MIIM
	.comm	_GSWIP_MII_CFG_MODE_MIIP,4,2    ; @GSWIP_MII_CFG_MODE_MIIP
	.comm	_GSWIP_MII_CFG_MODE_RMIIM,4,2   ; @GSWIP_MII_CFG_MODE_RMIIM
	.comm	_GSWIP_MII_CFG_MODE_RGMII,4,2   ; @GSWIP_MII_CFG_MODE_RGMII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported interface: %d\n"

	.comm	_GSWIP_MII_CFG_MODE_MASK,4,2    ; @GSWIP_MII_CFG_MODE_MASK
	.comm	_GSWIP_MII_PCDU_TXDLY_MASK,4,2  ; @GSWIP_MII_PCDU_TXDLY_MASK
	.comm	_GSWIP_MII_PCDU_RXDLY_MASK,4,2  ; @GSWIP_MII_PCDU_RXDLY_MASK
	.no_dead_strip	_gswip_phylink_mac_config
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gswip_phylink_mac_config
l_switch.table.gswip_phylink_mac_config:
	.quad	_GSWIP_MII_CFG_MODE_RMIIM
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_RGMII
	.quad	_GSWIP_MII_CFG_MODE_MIIP
	.quad	_GSWIP_MII_CFG_MODE_MIIM
	.quad	_GSWIP_MII_CFG_MODE_MIIM

.subsections_via_symbols
