	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_media_change
_glc_media_change:                      ## @glc_media_change
	.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), %rbx
	movl	8(%rbx), %edi
	callq	_IFM_TYPE
	movq	_IFM_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	callq	_IFM_SUBTYPE
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_GELIC_AUTO_NEG@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_GELIC_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_GELIC_SPEED_100@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movq	_GELIC_SPEED_1000@GOTPCREL(%rip), %rax
	movq	_GELIC_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
LBB0_9:
	movl	8(%rbx), %edi
	callq	_IFM_OPTIONS
	movq	_IFM_FDX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_11
## %bb.10:
	movq	_GELIC_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%r14d, %eax
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_GELIC_SET_LINK_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GELIC_VLAN_TX_ETHERNET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-20(%rbp), %rbx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rbx
	callq	_lv1_net_control
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_IFM_ETHER,8,3                  ## @IFM_ETHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GELIC_AUTO_NEG,4,2             ## @GELIC_AUTO_NEG
	.comm	_GELIC_SPEED_10,4,2             ## @GELIC_SPEED_10
	.comm	_GELIC_SPEED_100,4,2            ## @GELIC_SPEED_100
	.comm	_GELIC_SPEED_1000,4,2           ## @GELIC_SPEED_1000
	.comm	_GELIC_FULL_DUPLEX,4,2          ## @GELIC_FULL_DUPLEX
	.comm	_IFM_FDX,4,2                    ## @IFM_FDX
	.comm	_GELIC_SET_LINK_MODE,4,2        ## @GELIC_SET_LINK_MODE
	.comm	_GELIC_VLAN_TX_ETHERNET,4,2     ## @GELIC_VLAN_TX_ETHERNET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_glc_media_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_media_change
_glc_media_change:                      ; @glc_media_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, [x0]
	ldr	w0, [x19, #8]
	bl	_IFM_TYPE
Lloh0:
	adrp	x8, _IFM_ETHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFM_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_IFM_SUBTYPE
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
Lloh5:
	adrp	x20, _GELIC_FULL_DUPLEX@GOTPAGE
Lloh6:
	ldr	x20, [x20, _GELIC_FULL_DUPLEX@GOTPAGEOFF]
	br	x10
LBB0_3:
Lloh7:
	adrp	x8, _GELIC_AUTO_NEG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GELIC_AUTO_NEG@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x8, _GELIC_SPEED_10@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GELIC_SPEED_10@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _GELIC_SPEED_100@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GELIC_SPEED_100@GOTPAGEOFF]
LBB0_7:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _GELIC_SPEED_1000@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GELIC_SPEED_1000@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w21, w9, w8
LBB0_9:
	ldr	w0, [x19, #8]
	bl	_IFM_OPTIONS
Lloh19:
	adrp	x8, _IFM_FDX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IFM_FDX@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x20]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w4, w8, w21
	ldp	w1, w0, [x19]
Lloh22:
	adrp	x8, _GELIC_SET_LINK_MODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GELIC_SET_LINK_MODE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _GELIC_VLAN_TX_ETHERNET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GELIC_VLAN_TX_ETHERNET@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x6, sp, #12
	add	x7, sp, #12
	mov	w5, #0
	bl	_lv1_net_control
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, wzr, w8, eq
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_IFM_ETHER,8,3                  ; @IFM_ETHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GELIC_AUTO_NEG,4,2             ; @GELIC_AUTO_NEG
	.comm	_GELIC_SPEED_10,4,2             ; @GELIC_SPEED_10
	.comm	_GELIC_SPEED_100,4,2            ; @GELIC_SPEED_100
	.comm	_GELIC_SPEED_1000,4,2           ; @GELIC_SPEED_1000
	.comm	_GELIC_FULL_DUPLEX,4,2          ; @GELIC_FULL_DUPLEX
	.comm	_IFM_FDX,4,2                    ; @IFM_FDX
	.comm	_GELIC_SET_LINK_MODE,4,2        ; @GELIC_SET_LINK_MODE
	.comm	_GELIC_VLAN_TX_ETHERNET,4,2     ; @GELIC_VLAN_TX_ETHERNET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_glc_media_change
.subsections_via_symbols
