	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_rcb_set_port_timeout
_hns_rcb_set_port_timeout:              ## @hns_rcb_set_port_timeout
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_AE_IS_VER1
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RCB_CFG_OVERTIME_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HNS_RCB_CLK_FREQ_MHZ@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movq	(%rbx), %rdi
	callq	_HNS_DSAF_IS_DEBUG
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_RCB_PORT_CFG_OVERTIME_REG@GOTPCREL(%rip), %rax
	shll	$2, %r15d
	movslq	%r15d, %rsi
	addq	(%rax), %rsi
LBB0_5:
	movq	%rbx, %rdi
LBB0_6:
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsaf_write_dev                 ## TAILCALL
LBB0_3:
	movq	_HNS_RCB_DEF_GAP_TIME_USECS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RCB_PORT_INT_GAPTIME_REG@GOTPCREL(%rip), %rax
	shll	$2, %r15d
	movslq	%r15d, %r15
	movq	(%rax), %rsi
	addq	%r15, %rsi
	cmpl	%r14d, %edx
	cmovgel	%r14d, %edx
	movq	%rbx, %rdi
	callq	_dsaf_write_dev
	movq	_RCB_PORT_CFG_OVERTIME_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RCB_CFG_OVERTIME_REG,8,3       ## @RCB_CFG_OVERTIME_REG
	.comm	_HNS_RCB_CLK_FREQ_MHZ,4,2       ## @HNS_RCB_CLK_FREQ_MHZ
	.comm	_HNS_RCB_DEF_GAP_TIME_USECS,4,2 ## @HNS_RCB_DEF_GAP_TIME_USECS
	.comm	_RCB_PORT_INT_GAPTIME_REG,8,3   ## @RCB_PORT_INT_GAPTIME_REG
	.comm	_RCB_PORT_CFG_OVERTIME_REG,8,3  ## @RCB_PORT_CFG_OVERTIME_REG
	.no_dead_strip	_hns_rcb_set_port_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_rcb_set_port_timeout
_hns_rcb_set_port_timeout:              ; @hns_rcb_set_port_timeout
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_AE_IS_VER1
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RCB_CFG_OVERTIME_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCB_CFG_OVERTIME_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HNS_RCB_CLK_FREQ_MHZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HNS_RCB_CLK_FREQ_MHZ@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
Lloh5:
	ldr	w8, [x9]
	mul	w2, w8, w19
	mov	x0, x20
	b	LBB0_6
LBB0_2:
	ldr	x0, [x20]
	bl	_HNS_DSAF_IS_DEBUG
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _RCB_PORT_CFG_OVERTIME_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCB_PORT_CFG_OVERTIME_REG@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	w9, w21, #2
	add	x1, x8, w9, sxtw
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _HNS_RCB_DEF_GAP_TIME_USECS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS_RCB_DEF_GAP_TIME_USECS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _RCB_PORT_INT_GAPTIME_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RCB_PORT_INT_GAPTIME_REG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	w10, w21, #2
	sxtw	x21, w10
	add	x1, x9, x21
	cmp	w8, w19
	csel	w2, w8, w19, lt
	mov	x0, x20
	bl	_dsaf_write_dev
Lloh15:
	adrp	x8, _RCB_PORT_CFG_OVERTIME_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RCB_PORT_CFG_OVERTIME_REG@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, x21
LBB0_5:
	mov	x0, x20
	mov	x2, x19
LBB0_6:
	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_dev
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RCB_CFG_OVERTIME_REG,8,3       ; @RCB_CFG_OVERTIME_REG
	.comm	_HNS_RCB_CLK_FREQ_MHZ,4,2       ; @HNS_RCB_CLK_FREQ_MHZ
	.comm	_HNS_RCB_DEF_GAP_TIME_USECS,4,2 ; @HNS_RCB_DEF_GAP_TIME_USECS
	.comm	_RCB_PORT_INT_GAPTIME_REG,8,3   ; @RCB_PORT_INT_GAPTIME_REG
	.comm	_RCB_PORT_CFG_OVERTIME_REG,8,3  ; @RCB_PORT_CFG_OVERTIME_REG
	.no_dead_strip	_hns_rcb_set_port_timeout
.subsections_via_symbols
