	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_tc_get_decap_handle
_bnxt_tc_get_decap_handle:              ## @bnxt_tc_get_decap_handle
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	8(%rsi), %rcx
	movq	(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movq	$0, 24(%rsi)
	leaq	4(%rbx), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_bnxt_tc_get_tunnel_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, (%r13)
	movq	(%rax), %rax
	movq	_INVALID_TUNNEL_HANDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %eax
	movl	%eax, -136(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -144(%rbp)
	leaq	-144(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	movq	%r14, %rdi
	callq	_bnxt_tc_resolve_tunnel_hdrs
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r15, %rbx
	addq	$8, %rbx
	movl	28(%r15), %edi
	movl	-96(%rbp), %esi
	callq	_ether_addr_copy
	movq	-104(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 16(%r15)
	movl	-108(%rbp), %eax
	movl	%eax, 12(%r15)
	movl	-112(%rbp), %eax
	movl	%eax, 8(%r15)
LBB0_6:
	movq	_BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	leaq	-80(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_bnxt_tc_get_ref_decap_handle
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	-80(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_hwrm_cfa_decap_filter_alloc
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnxt_tc_put_decap_l2_node
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_bnxt_tc_put_tunnel_node
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_8:
	movq	(%r15), %rax
LBB0_9:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r13d, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INVALID_TUNNEL_HANDLE,8,3      ## @INVALID_TUNNEL_HANDLE
	.comm	_BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS,4,2 ## @BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS
	.no_dead_strip	_bnxt_tc_get_decap_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_tc_get_decap_handle
_bnxt_tc_get_decap_handle:              ; @bnxt_tc_get_decap_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x21, [x0]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	add	x3, x1, #8
	stp	q0, q0, [sp, #16]
	str	xzr, [x1, #24]
	add	x23, x21, #4
	mov	x1, x23
	mov	x2, x21
	bl	_bnxt_tc_get_tunnel_node
	cbz	x0, LBB0_9
; %bb.1:
	mov	x25, x0
	str	x0, [x20]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INVALID_TUNNEL_HANDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INVALID_TUNNEL_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	ldp	w9, w8, [x24, #8]
	str	w8, [sp, #24]
	str	w9, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #48
	mov	x0, x19
	bl	_bnxt_tc_resolve_tunnel_hdrs
	mov	x26, x0
	cbnz	w0, LBB0_8
; %bb.3:
	add	x27, x25, #8
	ldr	w0, [x25, #28]
	ldr	w1, [sp, #64]
	bl	_ether_addr_copy
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_5
; %bb.4:
	str	x8, [x25, #16]
	ldr	d0, [sp, #48]
	str	d0, [x25, #8]
LBB0_5:
Lloh3:
	adrp	x8, _BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	mov	x3, x20
	bl	_bnxt_tc_get_ref_decap_handle
	mov	x26, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	mov	x4, x25
	bl	_hwrm_cfa_decap_filter_alloc
	cbz	w0, LBB0_10
; %bb.7:
	mov	x26, x0
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_tc_put_decap_l2_node
LBB0_8:
	ldr	x3, [x20]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_bnxt_tc_put_tunnel_node
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_12
LBB0_10:
	ldr	x8, [x25]
LBB0_11:
	mov	w26, #0
	str	x8, [x22]
LBB0_12:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INVALID_TUNNEL_HANDLE,8,3      ; @INVALID_TUNNEL_HANDLE
	.comm	_BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS,4,2 ; @BNXT_TC_FLOW_FLAGS_TUNL_ETH_ADDRS
	.no_dead_strip	_bnxt_tc_get_decap_handle
.subsections_via_symbols
