	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_xgmac_get_info
_hns_xgmac_get_info:                    ## @hns_xgmac_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_XGMAC_MAC_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dsaf_read_dev
	movq	_XGMAC_CTL_TX_PAD_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_dsaf_get_bit
	movq	%rax, 40(%r12)
	movq	$0, 32(%r12)
	movq	_XGMAC_MAC_PAUSE_TIME_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dsaf_read_dev
	movl	%eax, 28(%r12)
	movq	_XGMAC_PORT_MODE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dsaf_read_dev
	movl	%eax, %r15d
	movq	_XGMAC_PORT_MODE_TX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XGMAC_PORT_MODE_TX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_dsaf_get_field
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_XGMAC_PORT_MODE_RX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XGMAC_PORT_MODE_RX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_dsaf_get_field
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ecx, (%r12)
	movl	$1, 4(%r12)
	movq	_MAC_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_XGMAC_MAC_PAUSE_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dsaf_read_dev
	movl	%eax, %ebx
	movq	_XGMAC_PAUSE_CTL_RX_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dsaf_get_bit
	movq	%rax, 16(%r12)
	movq	_XGMAC_PAUSE_CTL_TX_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dsaf_get_bit
	movq	%rax, 8(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_MAC_CONTROL_REG,4,2      ## @XGMAC_MAC_CONTROL_REG
	.comm	_XGMAC_CTL_TX_PAD_B,4,2         ## @XGMAC_CTL_TX_PAD_B
	.comm	_XGMAC_MAC_PAUSE_TIME_REG,4,2   ## @XGMAC_MAC_PAUSE_TIME_REG
	.comm	_XGMAC_PORT_MODE_REG,4,2        ## @XGMAC_PORT_MODE_REG
	.comm	_XGMAC_PORT_MODE_TX_M,4,2       ## @XGMAC_PORT_MODE_TX_M
	.comm	_XGMAC_PORT_MODE_TX_S,4,2       ## @XGMAC_PORT_MODE_TX_S
	.comm	_XGMAC_PORT_MODE_RX_M,4,2       ## @XGMAC_PORT_MODE_RX_M
	.comm	_XGMAC_PORT_MODE_RX_S,4,2       ## @XGMAC_PORT_MODE_RX_S
	.comm	_MAC_SPEED_10000,4,2            ## @MAC_SPEED_10000
	.comm	_XGMAC_MAC_PAUSE_CTRL_REG,4,2   ## @XGMAC_MAC_PAUSE_CTRL_REG
	.comm	_XGMAC_PAUSE_CTL_RX_B,4,2       ## @XGMAC_PAUSE_CTL_RX_B
	.comm	_XGMAC_PAUSE_CTL_TX_B,4,2       ## @XGMAC_PAUSE_CTL_TX_B
	.no_dead_strip	_hns_xgmac_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_xgmac_get_info
_hns_xgmac_get_info:                    ; @hns_xgmac_get_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _XGMAC_MAC_CONTROL_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGMAC_MAC_CONTROL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dsaf_read_dev
Lloh3:
	adrp	x8, _XGMAC_CTL_TX_PAD_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XGMAC_CTL_TX_PAD_B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dsaf_get_bit
	stp	xzr, x0, [x19, #32]
Lloh6:
	adrp	x8, _XGMAC_MAC_PAUSE_TIME_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XGMAC_MAC_PAUSE_TIME_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dsaf_read_dev
	str	w0, [x19, #28]
Lloh9:
	adrp	x8, _XGMAC_PORT_MODE_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XGMAC_PORT_MODE_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dsaf_read_dev
	mov	x21, x0
Lloh12:
	adrp	x8, _XGMAC_PORT_MODE_TX_M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XGMAC_PORT_MODE_TX_M@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _XGMAC_PORT_MODE_TX_S@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XGMAC_PORT_MODE_TX_S@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_dsaf_get_field
	cbz	x0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _XGMAC_PORT_MODE_RX_M@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XGMAC_PORT_MODE_RX_M@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _XGMAC_PORT_MODE_RX_S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XGMAC_PORT_MODE_RX_S@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_dsaf_get_field
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	mov	w9, #1
Lloh24:
	adrp	x10, _MAC_SPEED_10000@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MAC_SPEED_10000@GOTPAGEOFF]
	stp	w8, w9, [x19]
Lloh26:
	ldr	w8, [x10]
	str	w8, [x19, #24]
Lloh27:
	adrp	x8, _XGMAC_MAC_PAUSE_CTRL_REG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XGMAC_MAC_PAUSE_CTRL_REG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dsaf_read_dev
	mov	x20, x0
Lloh30:
	adrp	x8, _XGMAC_PAUSE_CTL_RX_B@GOTPAGE
Lloh31:
	ldr	x8, [x8, _XGMAC_PAUSE_CTL_RX_B@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_dsaf_get_bit
	str	x0, [x19, #16]
Lloh33:
	adrp	x8, _XGMAC_PAUSE_CTL_TX_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _XGMAC_PAUSE_CTL_TX_B@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dsaf_get_bit
	str	x0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_XGMAC_MAC_CONTROL_REG,4,2      ; @XGMAC_MAC_CONTROL_REG
	.comm	_XGMAC_CTL_TX_PAD_B,4,2         ; @XGMAC_CTL_TX_PAD_B
	.comm	_XGMAC_MAC_PAUSE_TIME_REG,4,2   ; @XGMAC_MAC_PAUSE_TIME_REG
	.comm	_XGMAC_PORT_MODE_REG,4,2        ; @XGMAC_PORT_MODE_REG
	.comm	_XGMAC_PORT_MODE_TX_M,4,2       ; @XGMAC_PORT_MODE_TX_M
	.comm	_XGMAC_PORT_MODE_TX_S,4,2       ; @XGMAC_PORT_MODE_TX_S
	.comm	_XGMAC_PORT_MODE_RX_M,4,2       ; @XGMAC_PORT_MODE_RX_M
	.comm	_XGMAC_PORT_MODE_RX_S,4,2       ; @XGMAC_PORT_MODE_RX_S
	.comm	_MAC_SPEED_10000,4,2            ; @MAC_SPEED_10000
	.comm	_XGMAC_MAC_PAUSE_CTRL_REG,4,2   ; @XGMAC_MAC_PAUSE_CTRL_REG
	.comm	_XGMAC_PAUSE_CTL_RX_B,4,2       ; @XGMAC_PAUSE_CTL_RX_B
	.comm	_XGMAC_PAUSE_CTL_TX_B,4,2       ; @XGMAC_PAUSE_CTL_TX_B
	.no_dead_strip	_hns_xgmac_get_info
.subsections_via_symbols
