	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_debugfs_init              ## -- Begin function bnad_debugfs_init
	.p2align	4, 0x90
_bnad_debugfs_init:                     ## @bnad_debugfs_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_bna_debugfs_root@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_debugfs_create_dir
	movq	%rax, (%rbx)
	movq	_bna_debugfs_port_count@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_4:
	movl	(%r15), %edi
	callq	_pci_name
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	movq	%rax, %rcx
	callq	_snprintf
	cmpq	$0, 16(%r15)
	je	LBB0_5
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%rbx), %rsi
	leaq	-112(%rbp), %rdi
	callq	_debugfs_create_dir
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_bna_debugfs_port_count@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	_bnad_debugfs_files@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r13
	movl	8(%r13,%r12), %esi
	movq	16(%r15), %rdx
	movl	(%r13,%r12), %edi
	movl	4(%r13,%r12), %r8d
	movq	%r15, %rcx
	callq	_debugfs_create_file
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r12
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_12
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_6:
	movl	(%r15), %edi
	callq	_pci_name
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_12
LBB0_11:
	movl	(%r15), %edi
	callq	_pci_name
	movl	(%r13,%r12), %edx
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bna_debugfs_root,8,3           ## @bna_debugfs_root
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bna"

	.comm	_bna_debugfs_port_count,4,2     ## @bna_debugfs_port_count
L_.str.1:                               ## @.str.1
	.asciz	"BNA: debugfs root dir creation failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"pci_dev:%s"

L_.str.3:                               ## @.str.3
	.asciz	"bna pci_dev %s: root dir creation failed\n"

	.comm	_bnad_debugfs_files,8,3         ## @bnad_debugfs_files
L_.str.4:                               ## @.str.4
	.asciz	"BNA pci_dev:%s: create %s entry failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnad_debugfs_init              ; -- Begin function bnad_debugfs_init
	.p2align	2
_bnad_debugfs_init:                     ; @bnad_debugfs_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x20, _bna_debugfs_root@GOTPAGE
Lloh4:
	ldr	x20, [x20, _bna_debugfs_root@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_debugfs_create_dir
	str	x0, [x20]
Lloh7:
	adrp	x0, _bna_debugfs_port_count@GOTPAGE
Lloh8:
	ldr	x0, [x0, _bna_debugfs_port_count@GOTPAGEOFF]
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x20]
	cbz	x8, LBB0_8
LBB0_2:
	ldr	w0, [x19]
	bl	_pci_name
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w1, #64
	bl	_snprintf
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_13
; %bb.3:
	ldr	x1, [x20]
	add	x0, sp, #24
	bl	_debugfs_create_dir
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.4:
Lloh11:
	adrp	x0, _bna_debugfs_port_count@GOTPAGE
Lloh12:
	ldr	x0, [x0, _bna_debugfs_port_count@GOTPAGEOFF]
	bl	_atomic_inc
Lloh13:
	adrp	x20, _bnad_debugfs_files@GOTPAGE
Lloh14:
	ldr	x20, [x20, _bnad_debugfs_files@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.5:
	mov	x21, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x20]
	add	x8, x23, x21
	ldp	w4, w1, [x8, #4]
	ldr	x2, [x19, #16]
	ldr	w0, [x8]
	mov	x3, x19
	bl	_debugfs_create_file
	ldr	x8, [x19, #8]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #12
	cmp	x22, w0, sxtw
	b.lt	LBB0_6
	b	LBB0_13
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.9:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_pr_warn
LBB0_10:
	ldr	w0, [x19]
	bl	_pci_name
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19]
	bl	_pci_name
	ldr	w8, [x23, x21]
	stp	x0, x8, [sp]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	bl	_pr_warn
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_bna_debugfs_root,8,3           ; @bna_debugfs_root
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bna"

	.comm	_bna_debugfs_port_count,4,2     ; @bna_debugfs_port_count
l_.str.1:                               ; @.str.1
	.asciz	"BNA: debugfs root dir creation failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"pci_dev:%s"

l_.str.3:                               ; @.str.3
	.asciz	"bna pci_dev %s: root dir creation failed\n"

	.comm	_bnad_debugfs_files,8,3         ; @bnad_debugfs_files
l_.str.4:                               ; @.str.4
	.asciz	"BNA pci_dev:%s: create %s entry failed\n"

.subsections_via_symbols
