	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_media_status
_glc_media_status:                      ## @glc_media_status
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_IFM_AVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rsi)
	movq	_IFM_ETHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsi)
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_GELIC_GET_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GELIC_VLAN_TX_ETHERNET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%rbp), %rax
	leaq	-12(%rbp), %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_lv1_net_control
	addq	$16, %rsp
	movl	-12(%rbp), %eax
	movq	_GELIC_LINK_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rbx)
LBB0_2:
	movq	_GELIC_SPEED_10@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_IFM_10_T@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movq	_GELIC_SPEED_100@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_IFM_100_TX@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_GELIC_SPEED_1000@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_IFM_1000_T@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
LBB0_9:
	movq	_GELIC_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_10
## %bb.11:
	movq	_IFM_HDX@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_IFM_FDX@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
	.comm	_IFM_ETHER,4,2                  ## @IFM_ETHER
	.comm	_GELIC_GET_LINK_STATUS,4,2      ## @GELIC_GET_LINK_STATUS
	.comm	_GELIC_VLAN_TX_ETHERNET,4,2     ## @GELIC_VLAN_TX_ETHERNET
	.comm	_GELIC_LINK_UP,4,2              ## @GELIC_LINK_UP
	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
	.comm	_GELIC_SPEED_10,4,2             ## @GELIC_SPEED_10
	.comm	_IFM_10_T,4,2                   ## @IFM_10_T
	.comm	_GELIC_SPEED_100,4,2            ## @GELIC_SPEED_100
	.comm	_IFM_100_TX,4,2                 ## @IFM_100_TX
	.comm	_GELIC_SPEED_1000,4,2           ## @GELIC_SPEED_1000
	.comm	_IFM_1000_T,4,2                 ## @IFM_1000_T
	.comm	_GELIC_FULL_DUPLEX,4,2          ## @GELIC_FULL_DUPLEX
	.comm	_IFM_FDX,4,2                    ## @IFM_FDX
	.comm	_IFM_HDX,4,2                    ## @IFM_HDX
	.no_dead_strip	_glc_media_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_media_status
_glc_media_status:                      ; @glc_media_status
	.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, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IFM_ETHER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IFM_ETHER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w9, [x1]
	ldp	w1, w0, [x8]
Lloh6:
	adrp	x8, _GELIC_GET_LINK_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GELIC_GET_LINK_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _GELIC_VLAN_TX_ETHERNET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GELIC_VLAN_TX_ETHERNET@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x6, sp, #12
	add	x7, sp, #8
	mov	w4, #0
	mov	w5, #0
	bl	_lv1_net_control
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _GELIC_LINK_UP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GELIC_LINK_UP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh15:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_2:
Lloh18:
	adrp	x9, _GELIC_SPEED_10@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GELIC_SPEED_10@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh21:
	adrp	x9, _IFM_10_T@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IFM_10_T@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh23:
	adrp	x9, _GELIC_SPEED_100@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GELIC_SPEED_100@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh26:
	adrp	x9, _IFM_100_TX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IFM_100_TX@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh28:
	adrp	x9, _GELIC_SPEED_1000@GOTPAGE
Lloh29:
	ldr	x9, [x9, _GELIC_SPEED_1000@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh31:
	adrp	x9, _IFM_1000_T@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IFM_1000_T@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_9:
Lloh33:
	adrp	x9, _GELIC_FULL_DUPLEX@GOTPAGE
Lloh34:
	ldr	x9, [x9, _GELIC_FULL_DUPLEX@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _IFM_HDX@GOTPAGE
Lloh37:
	ldr	x10, [x10, _IFM_HDX@GOTPAGEOFF]
Lloh38:
	adrp	x11, _IFM_FDX@GOTPAGE
Lloh39:
	ldr	x11, [x11, _IFM_FDX@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
	.comm	_IFM_ETHER,4,2                  ; @IFM_ETHER
	.comm	_GELIC_GET_LINK_STATUS,4,2      ; @GELIC_GET_LINK_STATUS
	.comm	_GELIC_VLAN_TX_ETHERNET,4,2     ; @GELIC_VLAN_TX_ETHERNET
	.comm	_GELIC_LINK_UP,4,2              ; @GELIC_LINK_UP
	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
	.comm	_GELIC_SPEED_10,4,2             ; @GELIC_SPEED_10
	.comm	_IFM_10_T,4,2                   ; @IFM_10_T
	.comm	_GELIC_SPEED_100,4,2            ; @GELIC_SPEED_100
	.comm	_IFM_100_TX,4,2                 ; @IFM_100_TX
	.comm	_GELIC_SPEED_1000,4,2           ; @GELIC_SPEED_1000
	.comm	_IFM_1000_T,4,2                 ; @IFM_1000_T
	.comm	_GELIC_FULL_DUPLEX,4,2          ; @GELIC_FULL_DUPLEX
	.comm	_IFM_FDX,4,2                    ; @IFM_FDX
	.comm	_IFM_HDX,4,2                    ; @IFM_HDX
	.no_dead_strip	_glc_media_status
.subsections_via_symbols
