	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_dev_get
_nfp_flower_dev_get:                    ## @nfp_flower_dev_get
	.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	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	_NFP_FLOWER_CMSG_PORT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELD_GET
	movq	_NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	$1, (%r15)
LBB0_3:
	movq	_NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%r14, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_flower_get_netdev_from_internal_port_id ## TAILCALL
LBB0_4:
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nfp_flower_repr_get_type_and_port
	movq	_NFP_REPR_TYPE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_10
## %bb.6:
	movq	(%r14), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	-32(%rbp), %rcx
	cmpq	(%rax), %rcx
	jae	LBB0_10
## %bb.8:
	movq	8(%rax), %rax
	movl	(%rax,%rcx,4), %edi
	callq	_rcu_dereference
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FLOWER_CMSG_PORT_TYPE,4,2  ## @NFP_FLOWER_CMSG_PORT_TYPE
	.comm	_NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT,8,3 ## @NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT
	.comm	_NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM,4,2 ## @NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM
	.comm	_NFP_REPR_TYPE_MAX,4,2          ## @NFP_REPR_TYPE_MAX
	.no_dead_strip	_nfp_flower_dev_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_dev_get
_nfp_flower_dev_get:                    ; @nfp_flower_dev_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _NFP_FLOWER_CMSG_PORT_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_PORT_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FIELD_GET
Lloh3:
	adrp	x8, _NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
Lloh6:
	adrp	x8, _NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_nfp_flower_get_netdev_from_internal_port_id
LBB0_4:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_flower_repr_get_type_and_port
Lloh9:
	adrp	x8, _NFP_REPR_TYPE_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFP_REPR_TYPE_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	w0, [x8, w0, uxtw #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.7:
	ldr	x9, [x0, #8]
	ldr	w0, [x9, x8, lsl #2]
	bl	_rcu_dereference
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FLOWER_CMSG_PORT_TYPE,4,2  ; @NFP_FLOWER_CMSG_PORT_TYPE
	.comm	_NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT,8,3 ; @NFP_FLOWER_CMSG_PORT_TYPE_OTHER_PORT
	.comm	_NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM,4,2 ; @NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM
	.comm	_NFP_REPR_TYPE_MAX,4,2          ; @NFP_REPR_TYPE_MAX
	.no_dead_strip	_nfp_flower_dev_get
.subsections_via_symbols
