	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_debugfs_open_fwtrc
_bnad_debugfs_open_fwtrc:               ## @bnad_debugfs_open_fwtrc
	.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), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%r13), %rdi
	movq	8(%rbx), %rsi
	movq	%rbx, %rdx
	callq	_bfa_nw_ioc_debug_fwtrc
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_BFA_STATUS_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.6:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_1
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_kfree
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to collect fwtrc\n"

	.no_dead_strip	_bnad_debugfs_open_fwtrc
.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_fwtrc
_bnad_debugfs_open_fwtrc:               ; @bnad_debugfs_open_fwtrc
	.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_fwtrc
	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]
	cmp	w22, w8
	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]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to collect fwtrc\n"

	.no_dead_strip	_bnad_debugfs_open_fwtrc
.subsections_via_symbols
