	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cortina_read_status
_cortina_read_status:                   ## @cortina_read_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	%rdi, %rbx
	movq	_VILLA_GLOBAL_GPIO_1_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cortina_read_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %edx
	xorl	%eax, %eax
	movl	$0, %ecx
	testb	$8, %dl
	je	LBB0_3
## %bb.2:
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movl	$1, %ecx
LBB0_3:
	movl	%ecx, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VILLA_GLOBAL_GPIO_1_INTS,4,2   ## @VILLA_GLOBAL_GPIO_1_INTS
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_cortina_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cortina_read_status
_cortina_read_status:                   ; @cortina_read_status
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _VILLA_GLOBAL_GPIO_1_INTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VILLA_GLOBAL_GPIO_1_INTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cortina_read_reg
	tbnz	w0, #31, LBB0_5
; %bb.1:
	tbnz	w0, #3, LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	w8, #1
LBB0_4:
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VILLA_GLOBAL_GPIO_1_INTS,4,2   ; @VILLA_GLOBAL_GPIO_1_INTS
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_cortina_read_status
.subsections_via_symbols
