	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_get_interface
_gfar_get_interface:                    ## @gfar_get_interface
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	callq	_gfar_read
	movq	_ECNTRL_SGMII_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_ECNTRL_TBI_MODE@GOTPCREL(%rip), %rdx
	movq	_ECNTRL_REDUCED_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.3:
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	_PHY_INTERFACE_MODE_RTBI@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	testl	%eax, %ecx
	je	LBB0_11
## %bb.7:
	movq	_ECNTRL_REDUCED_MII_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_PHY_INTERFACE_MODE_TBI@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_FSL_GIANFAR_DEV_HAS_GIGABIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_PHY_INTERFACE_MODE_GMII@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_15
## %bb.10:
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ECNTRL_SGMII_MODE,4,2          ## @ECNTRL_SGMII_MODE
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_ECNTRL_TBI_MODE,4,2            ## @ECNTRL_TBI_MODE
	.comm	_ECNTRL_REDUCED_MODE,4,2        ## @ECNTRL_REDUCED_MODE
	.comm	_PHY_INTERFACE_MODE_RTBI,8,3    ## @PHY_INTERFACE_MODE_RTBI
	.comm	_PHY_INTERFACE_MODE_TBI,8,3     ## @PHY_INTERFACE_MODE_TBI
	.comm	_ECNTRL_REDUCED_MII_MODE,4,2    ## @ECNTRL_REDUCED_MII_MODE
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ## @PHY_INTERFACE_MODE_RMII
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_FSL_GIANFAR_DEV_HAS_GIGABIT,4,2 ## @FSL_GIANFAR_DEV_HAS_GIGABIT
	.comm	_PHY_INTERFACE_MODE_GMII,8,3    ## @PHY_INTERFACE_MODE_GMII
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ## @PHY_INTERFACE_MODE_MII
	.no_dead_strip	_gfar_get_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfar_get_interface
_gfar_get_interface:                    ; @gfar_get_interface
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_gfar_read
Lloh0:
	adrp	x8, _ECNTRL_SGMII_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECNTRL_SGMII_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _ECNTRL_TBI_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECNTRL_TBI_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
Lloh8:
	adrp	x8, _ECNTRL_REDUCED_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECNTRL_REDUCED_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w0
	tst	w9, w0
	b.eq	LBB0_7
; %bb.5:
	cbz	w8, LBB0_10
; %bb.6:
Lloh11:
	adrp	x8, _PHY_INTERFACE_MODE_RTBI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RTBI@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	cbz	w8, LBB0_11
; %bb.8:
Lloh13:
	adrp	x8, _ECNTRL_REDUCED_MII_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ECNTRL_REDUCED_MII_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.9:
Lloh16:
	adrp	x8, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh18:
	adrp	x8, _PHY_INTERFACE_MODE_TBI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_TBI@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	ldr	w8, [x19, #8]
Lloh20:
	adrp	x9, _FSL_GIANFAR_DEV_HAS_GIGABIT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FSL_GIANFAR_DEV_HAS_GIGABIT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
Lloh23:
	adrp	x8, _PHY_INTERFACE_MODE_GMII@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_GMII@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	ldr	x8, [x19]
Lloh25:
	adrp	x9, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
Lloh28:
	adrp	x10, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh29:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x0, x9, x10, eq
	b	LBB0_3
LBB0_14:
Lloh31:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ECNTRL_SGMII_MODE,4,2          ; @ECNTRL_SGMII_MODE
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_ECNTRL_TBI_MODE,4,2            ; @ECNTRL_TBI_MODE
	.comm	_ECNTRL_REDUCED_MODE,4,2        ; @ECNTRL_REDUCED_MODE
	.comm	_PHY_INTERFACE_MODE_RTBI,8,3    ; @PHY_INTERFACE_MODE_RTBI
	.comm	_PHY_INTERFACE_MODE_TBI,8,3     ; @PHY_INTERFACE_MODE_TBI
	.comm	_ECNTRL_REDUCED_MII_MODE,4,2    ; @ECNTRL_REDUCED_MII_MODE
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ; @PHY_INTERFACE_MODE_RMII
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_FSL_GIANFAR_DEV_HAS_GIGABIT,4,2 ; @FSL_GIANFAR_DEV_HAS_GIGABIT
	.comm	_PHY_INTERFACE_MODE_GMII,8,3    ; @PHY_INTERFACE_MODE_GMII
	.comm	_PHY_INTERFACE_MODE_MII,8,3     ; @PHY_INTERFACE_MODE_MII
	.no_dead_strip	_gfar_get_interface
.subsections_via_symbols
