	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fman_get_qman_channel_id       ## -- Begin function fman_get_qman_channel_id
	.p2align	4, 0x90
_fman_get_qman_channel_id:              ## @fman_get_qman_channel_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), %rcx
	movl	(%rcx), %edx
	cmpl	$5, 8(%rcx)
	jle	LBB0_1
## %bb.5:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.6:
	leaq	_fman_get_qman_channel_id.port_ids(%rip), %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	addq	$4, %rax
	cmpq	%rdi, %rdx
	jne	LBB0_7
	jmp	LBB0_12
LBB0_1:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.9:
	leaq	_fman_get_qman_channel_id.port_ids.1(%rip), %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax)
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdi
	addq	$4, %rax
	cmpq	%rdi, %rdx
	jne	LBB0_10
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	xorl	%edi, %edi
LBB0_3:
	xorl	%eax, %eax
	cmpl	%edx, %edi
	jne	LBB0_4
LBB0_13:
	popq	%rbp
	retq
LBB0_4:
	addl	4(%rcx), %edi
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @fman_get_qman_channel_id.port_ids
_fman_get_qman_channel_id.port_ids:
	.long	48                              ## 0x30
	.long	49                              ## 0x31
	.long	40                              ## 0x28
	.long	41                              ## 0x29
	.long	42                              ## 0x2a
	.long	43                              ## 0x2b
	.long	44                              ## 0x2c
	.long	45                              ## 0x2d
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	7                               ## 0x7
	.long	7                               ## 0x7

	.p2align	4                               ## @fman_get_qman_channel_id.port_ids.1
_fman_get_qman_channel_id.port_ids.1:
	.long	48                              ## 0x30
	.long	40                              ## 0x28
	.long	41                              ## 0x29
	.long	42                              ## 0x2a
	.long	43                              ## 0x2b
	.long	44                              ## 0x2c
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	7                               ## 0x7
	.long	7                               ## 0x7

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fman_get_qman_channel_id       ; -- Begin function fman_get_qman_channel_id
	.p2align	2
_fman_get_qman_channel_id:              ; @fman_get_qman_channel_id
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w10, [x8, #8]
	ldr	w9, [x8]
	cmp	w10, #5
	b.le	LBB0_6
; %bb.1:
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x10, #0
Lloh0:
	adrp	x11, _fman_get_qman_channel_id.port_ids@PAGE
Lloh1:
	add	x11, x11, _fman_get_qman_channel_id.port_ids@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w1
	b.eq	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x10, #0
Lloh2:
	adrp	x11, _fman_get_qman_channel_id.port_ids.1@PAGE
Lloh3:
	add	x11, x11, _fman_get_qman_channel_id.port_ids.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w1
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.10:
	mov	w0, #0
	ret
LBB0_11:
	mov	w10, #0
	cmp	w10, w9
	b.eq	LBB0_14
	b	LBB0_16
LBB0_12:
	mov	w10, #0
LBB0_13:
	cmp	w10, w9
	b.ne	LBB0_16
LBB0_14:
	mov	w0, #0
	ret
LBB0_15:
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	cmp	w10, w9
	b.eq	LBB0_14
LBB0_16:
	ldr	w8, [x8, #4]
	add	w0, w8, w10
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @fman_get_qman_channel_id.port_ids
_fman_get_qman_channel_id.port_ids:
	.long	48                              ; 0x30
	.long	49                              ; 0x31
	.long	40                              ; 0x28
	.long	41                              ; 0x29
	.long	42                              ; 0x2a
	.long	43                              ; 0x2b
	.long	44                              ; 0x2c
	.long	45                              ; 0x2d
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	7                               ; 0x7

	.p2align	2                               ; @fman_get_qman_channel_id.port_ids.1
_fman_get_qman_channel_id.port_ids.1:
	.long	48                              ; 0x30
	.long	40                              ; 0x28
	.long	41                              ; 0x29
	.long	42                              ; 0x2a
	.long	43                              ; 0x2b
	.long	44                              ; 0x2c
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	7                               ; 0x7

.subsections_via_symbols
