	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_xge_srst_by_port
_hns_dsaf_xge_srst_by_port:             ## @hns_dsaf_xge_srst_by_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DSAF_XGE_NUM@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jbe	LBB0_5
## %bb.1:
	movq	_RESET_REQ_OR_DREQ@GOTPCREL(%rip), %r8
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %rax
	movb	(%rax), %cl
	movl	$34087042, %eax                 ## imm = 0x2082082
	shll	%cl, %eax
	cltq
	orq	(%r8), %rax
	testl	%edx, %edx
	jne	LBB0_2
## %bb.3:
	movq	_DSAF_SUB_SC_XGE_RESET_REQ_REG@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
	movq	_DSAF_SUB_SC_XGE_RESET_DREQ_REG@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	(%rcx), %rsi
	movq	%rax, %rdx
	popq	%rbp
	jmp	_dsaf_write_sub                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSAF_XGE_NUM,8,3               ## @DSAF_XGE_NUM
	.comm	_RESET_REQ_OR_DREQ,8,3          ## @RESET_REQ_OR_DREQ
	.comm	_DSAF_SUB_SC_XGE_RESET_REQ_REG,8,3 ## @DSAF_SUB_SC_XGE_RESET_REQ_REG
	.comm	_DSAF_SUB_SC_XGE_RESET_DREQ_REG,8,3 ## @DSAF_SUB_SC_XGE_RESET_DREQ_REG
	.no_dead_strip	_hns_dsaf_xge_srst_by_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_xge_srst_by_port
_hns_dsaf_xge_srst_by_port:             ; @hns_dsaf_xge_srst_by_port
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DSAF_XGE_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSAF_XGE_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RESET_REQ_OR_DREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET_REQ_OR_DREQ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x9, [x9, x1, lsl #3]
	ldr	w9, [x9]
	mov	w10, #8322
	movk	w10, #520, lsl #16
	lsl	w9, w10, w9
	sxtw	x9, w9
	orr	x8, x8, x9
Lloh6:
	adrp	x9, _DSAF_SUB_SC_XGE_RESET_REQ_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DSAF_SUB_SC_XGE_RESET_REQ_REG@GOTPAGEOFF]
Lloh8:
	adrp	x10, _DSAF_SUB_SC_XGE_RESET_DREQ_REG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DSAF_SUB_SC_XGE_RESET_DREQ_REG@GOTPAGEOFF]
	cmp	w2, #0
	csel	x9, x9, x10, eq
	ldr	x1, [x9]
	mov	x2, x8
	b	_dsaf_write_sub
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DSAF_XGE_NUM,8,3               ; @DSAF_XGE_NUM
	.comm	_RESET_REQ_OR_DREQ,8,3          ; @RESET_REQ_OR_DREQ
	.comm	_DSAF_SUB_SC_XGE_RESET_REQ_REG,8,3 ; @DSAF_SUB_SC_XGE_RESET_REQ_REG
	.comm	_DSAF_SUB_SC_XGE_RESET_DREQ_REG,8,3 ; @DSAF_SUB_SC_XGE_RESET_DREQ_REG
	.no_dead_strip	_hns_dsaf_xge_srst_by_port
.subsections_via_symbols
