	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_debugfs_open_fwsave
_bnad_debugfs_open_fwsave:              ## @bnad_debugfs_open_fwsave
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_BNA_DBG_FWTRC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%rbx)
	movl	(%r15), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%r13), %rdi
	movq	8(%rbx), %rsi
	movq	%rbx, %rdx
	callq	_bfa_nw_ioc_debug_fwsave
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_7
## %bb.5:
	movq	_BFA_STATUS_ENOFSAVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_kfree
	movl	(%r13), %edi
	callq	_pci_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	jmp	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNA_DBG_FWTRC_LEN,4,2          ## @BNA_DBG_FWTRC_LEN
	.comm	_BFA_STATUS_OK,4,2              ## @BFA_STATUS_OK
	.comm	_BFA_STATUS_ENOFSAVE,4,2        ## @BFA_STATUS_ENOFSAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bna %s: Failed to collect fwsave\n"

	.no_dead_strip	_bnad_debugfs_open_fwsave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_debugfs_open_fwsave
_bnad_debugfs_open_fwsave:              ; @bnad_debugfs_open_fwsave
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x23, [x0]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _BNA_DBG_FWTRC_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BNA_DBG_FWTRC_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	w0, [x19]
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	add	x21, x23, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x23, #8
	ldr	x1, [x19, #8]
	mov	x2, x19
	bl	_bfa_nw_ioc_debug_fwsave
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _BFA_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BFA_STATUS_OK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BFA_STATUS_ENOFSAVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BFA_STATUS_ENOFSAVE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	str	x19, [x20]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_kfree
	ldr	w0, [x23]
	bl	_pci_name
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNA_DBG_FWTRC_LEN,4,2          ; @BNA_DBG_FWTRC_LEN
	.comm	_BFA_STATUS_OK,4,2              ; @BFA_STATUS_OK
	.comm	_BFA_STATUS_ENOFSAVE,4,2        ; @BFA_STATUS_ENOFSAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bna %s: Failed to collect fwsave\n"

	.no_dead_strip	_bnad_debugfs_open_fwsave
.subsections_via_symbols
