	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_get_port_id
_hns_dsaf_get_port_id:                  ## @hns_dsaf_get_port_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	_DSAF_SERVICE_NW_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdi, %rcx
	jg	LBB0_3
## %bb.1:
	movq	_DSAF_BASE_INNER_PORT_NUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	addl	%eax, %ecx
	subl	%edx, %ecx
	movl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSAF_SERVICE_NW_NUM,8,3        ## @DSAF_SERVICE_NW_NUM
	.comm	_DSAF_BASE_INNER_PORT_NUM,8,3   ## @DSAF_BASE_INNER_PORT_NUM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hns_dsaf_get_port_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_get_port_id
_hns_dsaf_get_port_id:                  ; @hns_dsaf_get_port_id
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DSAF_SERVICE_NW_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSAF_SERVICE_NW_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.gt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _DSAF_BASE_INNER_PORT_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSAF_BASE_INNER_PORT_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x0
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_4:
	add	w8, w8, w0
	sub	w0, w8, w9
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DSAF_SERVICE_NW_NUM,8,3        ; @DSAF_SERVICE_NW_NUM
	.comm	_DSAF_BASE_INNER_PORT_NUM,8,3   ; @DSAF_BASE_INNER_PORT_NUM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hns_dsaf_get_port_id
.subsections_via_symbols
