	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_rst
_hns_dsaf_rst:                          ## @hns_dsaf_rst
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	movq	_DSAF_SUB_SC_NT_RESET_DREQ_REG@GOTPCREL(%rip), %rax
	cmoveq	_DSAF_SUB_SC_NT_RESET_REQ_REG@GOTPCREL(%rip), %rax
	movq	_DSAF_SUB_SC_XBAR_RESET_DREQ_REG@GOTPCREL(%rip), %rcx
	cmoveq	_DSAF_SUB_SC_XBAR_RESET_REQ_REG@GOTPCREL(%rip), %rcx
	movl	(%rax), %r14d
	movl	(%rcx), %esi
	movq	_RESET_REQ_OR_DREQ@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_dsaf_write_sub
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsaf_write_sub                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSAF_SUB_SC_XBAR_RESET_REQ_REG,4,2 ## @DSAF_SUB_SC_XBAR_RESET_REQ_REG
	.comm	_DSAF_SUB_SC_NT_RESET_REQ_REG,4,2 ## @DSAF_SUB_SC_NT_RESET_REQ_REG
	.comm	_DSAF_SUB_SC_XBAR_RESET_DREQ_REG,4,2 ## @DSAF_SUB_SC_XBAR_RESET_DREQ_REG
	.comm	_DSAF_SUB_SC_NT_RESET_DREQ_REG,4,2 ## @DSAF_SUB_SC_NT_RESET_DREQ_REG
	.comm	_RESET_REQ_OR_DREQ,4,2          ## @RESET_REQ_OR_DREQ
	.no_dead_strip	_hns_dsaf_rst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_rst
_hns_dsaf_rst:                          ; @hns_dsaf_rst
	.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, x0
Lloh0:
	adrp	x8, _DSAF_SUB_SC_NT_RESET_REQ_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSAF_SUB_SC_NT_RESET_REQ_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DSAF_SUB_SC_NT_RESET_DREQ_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DSAF_SUB_SC_NT_RESET_DREQ_REG@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
Lloh4:
	adrp	x9, _DSAF_SUB_SC_XBAR_RESET_REQ_REG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DSAF_SUB_SC_XBAR_RESET_REQ_REG@GOTPAGEOFF]
Lloh6:
	adrp	x10, _DSAF_SUB_SC_XBAR_RESET_DREQ_REG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DSAF_SUB_SC_XBAR_RESET_DREQ_REG@GOTPAGEOFF]
	ldr	w20, [x8]
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
Lloh8:
	adrp	x21, _RESET_REQ_OR_DREQ@GOTPAGE
Lloh9:
	ldr	x21, [x21, _RESET_REQ_OR_DREQ@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_dsaf_write_sub
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	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
	b	_dsaf_write_sub
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSAF_SUB_SC_XBAR_RESET_REQ_REG,4,2 ; @DSAF_SUB_SC_XBAR_RESET_REQ_REG
	.comm	_DSAF_SUB_SC_NT_RESET_REQ_REG,4,2 ; @DSAF_SUB_SC_NT_RESET_REQ_REG
	.comm	_DSAF_SUB_SC_XBAR_RESET_DREQ_REG,4,2 ; @DSAF_SUB_SC_XBAR_RESET_DREQ_REG
	.comm	_DSAF_SUB_SC_NT_RESET_DREQ_REG,4,2 ; @DSAF_SUB_SC_NT_RESET_DREQ_REG
	.comm	_RESET_REQ_OR_DREQ,4,2          ; @RESET_REQ_OR_DREQ
	.no_dead_strip	_hns_dsaf_rst
.subsections_via_symbols
