	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_gmac_port_mode_get
_hns_gmac_port_mode_get:                ## @hns_gmac_port_mode_get
	.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, %rbx
	movq	_GMAC_PORT_MODE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GMAC_PORT_MODE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GMAC_PORT_MODE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dsaf_get_dev_field
	movl	%eax, (%r12)
	movq	_GMAC_TRANSMIT_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dsaf_read_dev
	movl	%eax, %r15d
	movq	_GMAC_RECV_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dsaf_read_dev
	movl	%eax, %r14d
	movq	_GMAC_MAX_FRM_SIZE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GMAC_MAX_FRM_SIZE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GMAC_MAX_FRM_SIZE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dsaf_get_dev_field
	movq	%rax, 56(%r12)
	movq	_GMAC_SHORT_RUNTS_THR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GMAC_SHORT_RUNTS_THR_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GMAC_SHORT_RUNTS_THR_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dsaf_get_dev_field
	movq	%rax, 48(%r12)
	movq	_GMAC_TX_PAD_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_dsaf_get_bit
	movq	%rax, 40(%r12)
	movq	_GMAC_TX_CRC_ADD_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_dsaf_get_bit
	movq	%rax, 32(%r12)
	movq	_GMAC_TX_AN_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_dsaf_get_bit
	movq	%rax, 24(%r12)
	movq	_GMAC_RECV_CTRL_RUNT_PKT_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_dsaf_get_bit
	movq	%rax, 16(%r12)
	movq	_GMAC_RECV_CTRL_STRIP_PAD_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %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	_GMAC_PORT_MODE_REG,4,2         ## @GMAC_PORT_MODE_REG
	.comm	_GMAC_PORT_MODE_M,4,2           ## @GMAC_PORT_MODE_M
	.comm	_GMAC_PORT_MODE_S,4,2           ## @GMAC_PORT_MODE_S
	.comm	_GMAC_TRANSMIT_CONTROL_REG,4,2  ## @GMAC_TRANSMIT_CONTROL_REG
	.comm	_GMAC_RECV_CONTROL_REG,4,2      ## @GMAC_RECV_CONTROL_REG
	.comm	_GMAC_MAX_FRM_SIZE_REG,4,2      ## @GMAC_MAX_FRM_SIZE_REG
	.comm	_GMAC_MAX_FRM_SIZE_M,4,2        ## @GMAC_MAX_FRM_SIZE_M
	.comm	_GMAC_MAX_FRM_SIZE_S,4,2        ## @GMAC_MAX_FRM_SIZE_S
	.comm	_GMAC_SHORT_RUNTS_THR_REG,4,2   ## @GMAC_SHORT_RUNTS_THR_REG
	.comm	_GMAC_SHORT_RUNTS_THR_M,4,2     ## @GMAC_SHORT_RUNTS_THR_M
	.comm	_GMAC_SHORT_RUNTS_THR_S,4,2     ## @GMAC_SHORT_RUNTS_THR_S
	.comm	_GMAC_TX_PAD_EN_B,4,2           ## @GMAC_TX_PAD_EN_B
	.comm	_GMAC_TX_CRC_ADD_B,4,2          ## @GMAC_TX_CRC_ADD_B
	.comm	_GMAC_TX_AN_EN_B,4,2            ## @GMAC_TX_AN_EN_B
	.comm	_GMAC_RECV_CTRL_RUNT_PKT_EN_B,4,2 ## @GMAC_RECV_CTRL_RUNT_PKT_EN_B
	.comm	_GMAC_RECV_CTRL_STRIP_PAD_EN_B,4,2 ## @GMAC_RECV_CTRL_STRIP_PAD_EN_B
	.no_dead_strip	_hns_gmac_port_mode_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_gmac_port_mode_get
_hns_gmac_port_mode_get:                ; @hns_gmac_port_mode_get
	.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	x22, x0
Lloh0:
	adrp	x8, _GMAC_PORT_MODE_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMAC_PORT_MODE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _GMAC_PORT_MODE_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GMAC_PORT_MODE_M@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _GMAC_PORT_MODE_S@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GMAC_PORT_MODE_S@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_dsaf_get_dev_field
	str	w0, [x19]
Lloh9:
	adrp	x8, _GMAC_TRANSMIT_CONTROL_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GMAC_TRANSMIT_CONTROL_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_dsaf_read_dev
	mov	x21, x0
Lloh12:
	adrp	x8, _GMAC_RECV_CONTROL_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GMAC_RECV_CONTROL_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_dsaf_read_dev
	mov	x20, x0
Lloh15:
	adrp	x8, _GMAC_MAX_FRM_SIZE_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GMAC_MAX_FRM_SIZE_REG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _GMAC_MAX_FRM_SIZE_M@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GMAC_MAX_FRM_SIZE_M@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _GMAC_MAX_FRM_SIZE_S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GMAC_MAX_FRM_SIZE_S@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dsaf_get_dev_field
	str	x0, [x19, #56]
Lloh24:
	adrp	x8, _GMAC_SHORT_RUNTS_THR_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GMAC_SHORT_RUNTS_THR_REG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _GMAC_SHORT_RUNTS_THR_M@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GMAC_SHORT_RUNTS_THR_M@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _GMAC_SHORT_RUNTS_THR_S@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GMAC_SHORT_RUNTS_THR_S@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dsaf_get_dev_field
	str	x0, [x19, #48]
Lloh33:
	adrp	x8, _GMAC_TX_PAD_EN_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GMAC_TX_PAD_EN_B@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dsaf_get_bit
	str	x0, [x19, #40]
Lloh36:
	adrp	x8, _GMAC_TX_CRC_ADD_B@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GMAC_TX_CRC_ADD_B@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dsaf_get_bit
	str	x0, [x19, #32]
Lloh39:
	adrp	x8, _GMAC_TX_AN_EN_B@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GMAC_TX_AN_EN_B@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dsaf_get_bit
	str	x0, [x19, #24]
Lloh42:
	adrp	x8, _GMAC_RECV_CTRL_RUNT_PKT_EN_B@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GMAC_RECV_CTRL_RUNT_PKT_EN_B@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dsaf_get_bit
	str	x0, [x19, #16]
Lloh45:
	adrp	x8, _GMAC_RECV_CTRL_STRIP_PAD_EN_B@GOTPAGE
Lloh46:
	ldr	x8, [x8, _GMAC_RECV_CTRL_STRIP_PAD_EN_B@GOTPAGEOFF]
Lloh47:
	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	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_PORT_MODE_REG,4,2         ; @GMAC_PORT_MODE_REG
	.comm	_GMAC_PORT_MODE_M,4,2           ; @GMAC_PORT_MODE_M
	.comm	_GMAC_PORT_MODE_S,4,2           ; @GMAC_PORT_MODE_S
	.comm	_GMAC_TRANSMIT_CONTROL_REG,4,2  ; @GMAC_TRANSMIT_CONTROL_REG
	.comm	_GMAC_RECV_CONTROL_REG,4,2      ; @GMAC_RECV_CONTROL_REG
	.comm	_GMAC_MAX_FRM_SIZE_REG,4,2      ; @GMAC_MAX_FRM_SIZE_REG
	.comm	_GMAC_MAX_FRM_SIZE_M,4,2        ; @GMAC_MAX_FRM_SIZE_M
	.comm	_GMAC_MAX_FRM_SIZE_S,4,2        ; @GMAC_MAX_FRM_SIZE_S
	.comm	_GMAC_SHORT_RUNTS_THR_REG,4,2   ; @GMAC_SHORT_RUNTS_THR_REG
	.comm	_GMAC_SHORT_RUNTS_THR_M,4,2     ; @GMAC_SHORT_RUNTS_THR_M
	.comm	_GMAC_SHORT_RUNTS_THR_S,4,2     ; @GMAC_SHORT_RUNTS_THR_S
	.comm	_GMAC_TX_PAD_EN_B,4,2           ; @GMAC_TX_PAD_EN_B
	.comm	_GMAC_TX_CRC_ADD_B,4,2          ; @GMAC_TX_CRC_ADD_B
	.comm	_GMAC_TX_AN_EN_B,4,2            ; @GMAC_TX_AN_EN_B
	.comm	_GMAC_RECV_CTRL_RUNT_PKT_EN_B,4,2 ; @GMAC_RECV_CTRL_RUNT_PKT_EN_B
	.comm	_GMAC_RECV_CTRL_STRIP_PAD_EN_B,4,2 ; @GMAC_RECV_CTRL_STRIP_PAD_EN_B
	.no_dead_strip	_hns_gmac_port_mode_get
.subsections_via_symbols
