	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_dealloc_dpi         ## -- Begin function bnxt_qplib_dealloc_dpi
	.p2align	4, 0x90
_bnxt_qplib_dealloc_dpi:                ## @bnxt_qplib_dealloc_dpi
	.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, %r14
	movq	%rdi, %r15
	movq	(%rdx), %rdx
	cmpq	(%rsi), %rdx
	jae	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movl	16(%rsi), %esi
	movq	%rdx, %rdi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid DPI? dpi = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Freeing an unused DPI? dpi = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_dealloc_dpi         ; -- Begin function bnxt_qplib_dealloc_dpi
	.p2align	2
_bnxt_qplib_dealloc_dpi:                ; @bnxt_qplib_dealloc_dpi
	.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	x20, x0
	ldr	x2, [x2]
	ldr	x8, [x1]
	cmp	x2, x8
	b.hs	LBB0_3
; %bb.1:
	mov	x21, x1
	ldr	w1, [x1, #16]
	mov	x0, x2
	bl	_test_and_set_bit
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20]
	ldr	x2, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_dev_warn
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ret
LBB0_6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid DPI? dpi = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Freeing an unused DPI? dpi = %d\n"

.subsections_via_symbols
