	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_func_backing_store_qcaps
_bnxt_hwrm_func_backing_store_qcaps:    ## @bnxt_hwrm_func_backing_store_qcaps
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -56(%rbp)
	xorl	%r12d, %r12d
	cmpl	$67842, (%rdi)                  ## imm = 0x10902
	jl	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	callq	_BNXT_VF
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_17
## %bb.3:
	movq	_HWRM_FUNC_BACKING_STORE_QCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	__hwrm_send_message_silent
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$200, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movl	4(%rbx), %eax
	leal	4(,%rax,4), %edi
	movl	(%r14), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	4(%rbx), %edx
	testl	%edx, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_15
## %bb.9:
	leaq	1(%rdx), %r8
	movl	%r8d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_11:
	andl	$-4, %r8d
	xorl	%edx, %edx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	192(%r15), %rdi
	movq	%rax, (%rdi,%rdx,8)
	movq	192(%r15), %rdi
	leaq	4(%rax), %rsi
	movq	%rsi, 8(%rdi,%rdx,8)
	movq	192(%r15), %rsi
	leaq	8(%rax), %rdi
	movq	%rdi, 16(%rsi,%rdx,8)
	movq	192(%r15), %rsi
	leaq	12(%rax), %rdi
	movq	%rdi, 24(%rsi,%rdx,8)
	addq	$4, %rdx
	addq	$16, %rax
	cmpq	%rdx, %r8
	jne	LBB0_12
LBB0_13:
	testq	%rcx, %rcx
	je	LBB0_15
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	192(%r15), %rsi
	movq	%rax, (%rsi,%rdx,8)
	incq	%rdx
	addq	$4, %rax
	decq	%rcx
	jne	LBB0_14
LBB0_15:
	movq	%r15, 16(%rbx)
	movl	92(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 184(%r15)
	movl	88(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 176(%r15)
	movl	84(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 168(%r15)
	movl	80(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 160(%r15)
	movl	76(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 152(%r15)
	movl	72(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 144(%r15)
	movl	68(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 136(%r15)
	movl	64(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 128(%r15)
	movl	60(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 120(%r15)
	movl	56(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 112(%r15)
	movl	52(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 104(%r15)
	movl	48(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 96(%r15)
	movl	44(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 88(%r15)
	movl	40(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 80(%r15)
	movl	36(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 72(%r15)
	movl	32(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 64(%r15)
	movl	28(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 56(%r15)
	movl	24(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 48(%r15)
	movl	(%r13), %eax
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%r15)
	movl	20(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 40(%r15)
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r15)
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r15)
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 16(%r15)
	movl	4(%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r15)
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_FUNC_BACKING_STORE_QCAPS,4,2 ## @HWRM_FUNC_BACKING_STORE_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_bnxt_hwrm_func_backing_store_qcaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_func_backing_store_qcaps
_bnxt_hwrm_func_backing_store_qcaps:    ; @bnxt_hwrm_func_backing_store_qcaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w22, #0
	str	wzr, [sp, #8]
	ldr	w8, [x0]
	mov	w9, #2306
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x22, [x0, #24]
	bl	_BNXT_VF
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh0:
	adrp	x8, _HWRM_FUNC_BACKING_STORE_QCAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_FUNC_BACKING_STORE_QCAPS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	add	x19, x21, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #4
	bl	__hwrm_send_message_silent
	cbz	w0, LBB0_7
; %bb.6:
	mov	w22, #0
	b	LBB0_15
LBB0_7:
Lloh6:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #200
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.8:
	mov	x20, x0
	ldr	w8, [x21, #4]
	lsl	w8, w8, #2
	add	w0, w8, #4
	ldr	w1, [x23]
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w9, [x21, #4]
	tbnz	w9, #31, LBB0_12
; %bb.10:
	mov	x8, #0
	lsl	x9, x9, #3
	add	x9, x9, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #192]
	str	x0, [x10, x8]
	add	x0, x0, #4
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_11
LBB0_12:
	str	x20, [x21, #16]
	ldr	w0, [x22, #92]
	bl	_le32_to_cpu
	str	x0, [x20, #184]
	ldr	w0, [x22, #88]
	bl	_le16_to_cpu
	str	x0, [x20, #176]
	ldr	w0, [x22, #84]
	bl	_le16_to_cpu
	str	x0, [x20, #168]
	ldr	w0, [x22, #80]
	bl	_le16_to_cpu
	str	x0, [x20, #160]
	ldr	w0, [x22, #76]
	bl	_le16_to_cpu
	str	x0, [x20, #152]
	ldr	w0, [x22, #72]
	bl	_le32_to_cpu
	str	x0, [x20, #144]
	ldr	w0, [x22, #68]
	bl	_le16_to_cpu
	str	x0, [x20, #136]
	ldr	w0, [x22, #64]
	bl	_le16_to_cpu
	str	x0, [x20, #128]
	ldr	w0, [x22, #60]
	bl	_le32_to_cpu
	str	x0, [x20, #120]
	ldr	w0, [x22, #56]
	bl	_le16_to_cpu
	str	x0, [x20, #112]
	ldr	w0, [x22, #52]
	bl	_le16_to_cpu
	str	x0, [x20, #104]
	ldr	w0, [x22, #48]
	bl	_le16_to_cpu
	str	x0, [x20, #96]
	ldr	w0, [x22, #44]
	bl	_le16_to_cpu
	str	x0, [x20, #88]
	ldr	w0, [x22, #40]
	bl	_le32_to_cpu
	str	x0, [x20, #80]
	ldr	w0, [x22, #36]
	bl	_le16_to_cpu
	str	x0, [x20, #72]
	ldr	w0, [x22, #32]
	bl	_le16_to_cpu
	str	x0, [x20, #64]
	ldr	w0, [x22, #28]
	bl	_le32_to_cpu
	str	x0, [x20, #56]
	ldr	w0, [x22, #24]
	bl	_le32_to_cpu
	str	x0, [x20, #48]
	ldr	w8, [x22]
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	str	w8, [x20]
	ldr	w0, [x22, #20]
	bl	_le32_to_cpu
	str	x0, [x20, #40]
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
	str	x0, [x20, #32]
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
	str	x0, [x20, #24]
	ldr	w0, [x22, #8]
	bl	_le16_to_cpu
	str	x0, [x20, #16]
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	w22, #0
	str	x0, [x20, #8]
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_kfree
LBB0_14:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_FUNC_BACKING_STORE_QCAPS,4,2 ; @HWRM_FUNC_BACKING_STORE_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_bnxt_hwrm_func_backing_store_qcaps
.subsections_via_symbols
