	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_gmac_get_info
_hns_gmac_get_info:                     ## @hns_gmac_get_info
	.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	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_GMAC_10M_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-96(%rbp), %rsi
	callq	_hns_gmac_port_mode_get
	cmpq	$0, -80(%rbp)
	setne	%al
	cmpq	$0, -88(%rbp)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, (%rbx)
	movl	-96(%rbp), %eax
	movl	%eax, 40(%rbx)
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_hns_gmac_get_tx_auto_pause_frames
	movl	-20(%rbp), %eax
	movl	%eax, 36(%rbx)
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_hns_gmac_get_en
	cmpq	$0, -48(%rbp)
	setne	%al
	cmpq	$0, -40(%rbp)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, 4(%rbx)
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_hns_gmac_get_duplex_type
	movl	-28(%rbp), %eax
	movl	%eax, 8(%rbx)
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_hns_gmac_get_port_mode
	movl	-24(%rbp), %ecx
	cmpl	$130, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	cmpl	$128, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_MAC_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_MAC_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_MAC_SPEED_100@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	movl	%eax, 32(%rbx)
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_hns_gmac_get_pausefrm_cfg
	movq	-64(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%rbx)
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_10M_MII,4,2               ## @GMAC_10M_MII
	.comm	_MAC_SPEED_10,4,2               ## @MAC_SPEED_10
	.comm	_MAC_SPEED_100,4,2              ## @MAC_SPEED_100
	.comm	_MAC_SPEED_1000,4,2             ## @MAC_SPEED_1000
	.no_dead_strip	_hns_gmac_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_gmac_get_info
_hns_gmac_get_info:                     ; @hns_gmac_get_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh0:
	adrp	x8, _GMAC_10M_MII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMAC_10M_MII@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, sp
	bl	_hns_gmac_port_mode_get
	ldp	x9, x8, [sp, #8]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	cset	w8, ne
	str	w8, [x19]
	ldr	w8, [sp]
	str	w8, [x19, #40]
	add	x1, sp, #36
	mov	x0, x20
	bl	_hns_gmac_get_tx_auto_pause_frames
	ldr	w8, [sp, #36]
	str	w8, [x19, #36]
	add	x1, sp, #48
	add	x2, sp, #40
	mov	x0, x20
	bl	_hns_gmac_get_en
	ldr	x8, [sp, #48]
	cmp	x8, #0
	ldr	x8, [sp, #40]
	ccmp	x8, #0, #4, ne
	cset	w8, ne
	str	w8, [x19, #4]
	sub	x1, x29, #20
	mov	x0, x20
	bl	_hns_gmac_get_duplex_type
	ldur	w8, [x29, #-20]
	str	w8, [x19, #8]
	sub	x1, x29, #24
	mov	x0, x20
	bl	_hns_gmac_get_port_mode
	ldur	w8, [x29, #-24]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _MAC_SPEED_10@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_SPEED_10@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _MAC_SPEED_1000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_SPEED_1000@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _MAC_SPEED_100@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAC_SPEED_100@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	str	w8, [x19, #32]
	sub	x1, x29, #32
	sub	x2, x29, #40
	mov	x0, x20
	bl	_hns_gmac_get_pausefrm_cfg
	ldp	x9, x8, [x29, #-40]
	stp	x9, x8, [x19, #16]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_10M_MII,4,2               ; @GMAC_10M_MII
	.comm	_MAC_SPEED_10,4,2               ; @MAC_SPEED_10
	.comm	_MAC_SPEED_100,4,2              ; @MAC_SPEED_100
	.comm	_MAC_SPEED_1000,4,2             ; @MAC_SPEED_1000
	.no_dead_strip	_hns_gmac_get_info
.subsections_via_symbols
