	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gelic_card_get_ether_port_status
_gelic_card_get_ether_port_status:      ## @gelic_card_get_ether_port_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_bus_id
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_dev_id
	movq	_GELIC_LV1_GET_ETH_PORT_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GELIC_LV1_VLAN_TX_ETHERNET_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-28(%rbp), %r10
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rbx
	callq	_lv1_net_control
	addq	$16, %rsp
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_GELIC_PORT_ETHERNET_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	_GELIC_LV1_ETHER_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	callq	_netif_carrier_on
	jmp	LBB0_4
LBB0_3:
	callq	_netif_carrier_off
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GELIC_LV1_GET_ETH_PORT_STATUS,4,2 ## @GELIC_LV1_GET_ETH_PORT_STATUS
	.comm	_GELIC_LV1_VLAN_TX_ETHERNET_0,4,2 ## @GELIC_LV1_VLAN_TX_ETHERNET_0
	.comm	_GELIC_PORT_ETHERNET_0,8,3      ## @GELIC_PORT_ETHERNET_0
	.comm	_GELIC_LV1_ETHER_LINK_UP,4,2    ## @GELIC_LV1_ETHER_LINK_UP
	.no_dead_strip	_gelic_card_get_ether_port_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gelic_card_get_ether_port_status
_gelic_card_get_ether_port_status:      ; @gelic_card_get_ether_port_status
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_bus_id
	mov	x21, x0
	mov	x0, x19
	bl	_dev_id
	mov	x1, x0
Lloh0:
	adrp	x8, _GELIC_LV1_GET_ETH_PORT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GELIC_LV1_GET_ETH_PORT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GELIC_LV1_VLAN_TX_ETHERNET_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GELIC_LV1_VLAN_TX_ETHERNET_0@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x7, sp, #12
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_lv1_net_control
	cbz	w20, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _GELIC_PORT_ETHERNET_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GELIC_PORT_ETHERNET_0@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _GELIC_LV1_ETHER_LINK_UP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GELIC_LV1_ETHER_LINK_UP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_netif_carrier_on
	b	LBB0_4
LBB0_3:
	bl	_netif_carrier_off
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GELIC_LV1_GET_ETH_PORT_STATUS,4,2 ; @GELIC_LV1_GET_ETH_PORT_STATUS
	.comm	_GELIC_LV1_VLAN_TX_ETHERNET_0,4,2 ; @GELIC_LV1_VLAN_TX_ETHERNET_0
	.comm	_GELIC_PORT_ETHERNET_0,8,3      ; @GELIC_PORT_ETHERNET_0
	.comm	_GELIC_LV1_ETHER_LINK_UP,4,2    ; @GELIC_LV1_ETHER_LINK_UP
	.no_dead_strip	_gelic_card_get_ether_port_status
.subsections_via_symbols
