	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_msit_create_dbgfs
_ntb_msit_create_dbgfs:                 ## @ntb_msit_create_dbgfs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	(%rax), %rdi
	callq	_pci_name
	movq	_ntb_msit_dbgfs_topdir@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	callq	_debugfs_create_dir
	movq	%rax, 8(%r13)
	leaq	L_.str(%rip), %rdi
	movq	_ntb_msit_local_port_fops@GOTPCREL(%rip), %r8
	movl	$256, %esi                      ## imm = 0x100
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_debugfs_create_file
	movq	24(%r13), %rdi
	callq	_ntb_peer_port_count
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	%r14d, (%rax,%rbx)
	movq	%r13, 8(%rax,%rbx)
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_init_completion
	movq	%r15, %rdi
	movl	$32, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movq	8(%r13), %rsi
	movq	%r15, %rdi
	callq	_debugfs_create_dir
	movq	%rax, %r12
	movq	16(%r13), %rcx
	addq	%rbx, %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	$128, %esi
	movq	%rax, %rdx
	movq	_ntb_msit_trigger_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file_unsafe
	movq	16(%r13), %rcx
	addq	%rbx, %rcx
	leaq	L_.str(%rip), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, %rdx
	movq	_ntb_msit_port_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file_unsafe
	movq	16(%r13), %rcx
	addq	%rbx, %rcx
	leaq	L_.str.3(%rip), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, %rdx
	movq	_ntb_msit_count_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file_unsafe
	movq	16(%r13), %rcx
	addq	%rbx, %rcx
	leaq	L_.str.4(%rip), %rdi
	movl	$384, %esi                      ## imm = 0x180
	movq	%r12, %rdx
	movq	_ntb_msit_ready_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file_unsafe
	incq	%r14
	movq	24(%r13), %rdi
	callq	_ntb_peer_port_count
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	movq	_num_irqs@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%r14d, %r14d
	leaq	-80(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$32, %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	8(%r13), %rdx
	movq	(%r13), %rcx
	addq	%r14, %rcx
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	_ntb_msit_occurrences_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file_unsafe
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ntb_msit_dbgfs_topdir,8,3      ## @ntb_msit_dbgfs_topdir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port"

	.comm	_ntb_msit_local_port_fops,4,2   ## @ntb_msit_local_port_fops
L_.str.1:                               ## @.str.1
	.asciz	"peer%d"

L_.str.2:                               ## @.str.2
	.asciz	"trigger"

	.comm	_ntb_msit_trigger_fops,4,2      ## @ntb_msit_trigger_fops
	.comm	_ntb_msit_port_fops,4,2         ## @ntb_msit_port_fops
L_.str.3:                               ## @.str.3
	.asciz	"count"

	.comm	_ntb_msit_count_fops,4,2        ## @ntb_msit_count_fops
L_.str.4:                               ## @.str.4
	.asciz	"ready"

	.comm	_ntb_msit_ready_fops,4,2        ## @ntb_msit_ready_fops
	.comm	_num_irqs,4,2                   ## @num_irqs
L_.str.5:                               ## @.str.5
	.asciz	"irq%d_occurrences"

	.comm	_ntb_msit_occurrences_fops,4,2  ## @ntb_msit_occurrences_fops
	.no_dead_strip	_ntb_msit_create_dbgfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_msit_create_dbgfs
_ntb_msit_create_dbgfs:                 ; @ntb_msit_create_dbgfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #24]
	ldr	x0, [x8]
	bl	_pci_name
Lloh3:
	adrp	x8, _ntb_msit_dbgfs_topdir@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ntb_msit_dbgfs_topdir@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_debugfs_create_dir
	mov	x2, x0
	str	x0, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x4, _ntb_msit_local_port_fops@GOTPAGE
Lloh9:
	ldr	x4, [x4, _ntb_msit_local_port_fops@GOTPAGEOFF]
	mov	w1, #256
	mov	x3, x19
	bl	_debugfs_create_file
	ldr	x0, [x19, #24]
	bl	_ntb_peer_port_count
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x20, #0
Lloh10:
	adrp	x24, l_.str@PAGE
Lloh11:
	add	x24, x24, l_.str@PAGEOFF
Lloh12:
	adrp	x25, _ntb_msit_port_fops@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ntb_msit_port_fops@GOTPAGEOFF]
Lloh14:
	adrp	x26, l_.str.3@PAGE
Lloh15:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh16:
	adrp	x27, _ntb_msit_count_fops@GOTPAGE
Lloh17:
	ldr	x27, [x27, _ntb_msit_count_fops@GOTPAGEOFF]
Lloh18:
	adrp	x28, _ntb_msit_ready_fops@GOTPAGE
Lloh19:
	ldr	x28, [x28, _ntb_msit_ready_fops@GOTPAGEOFF]
Lloh20:
	adrp	x21, l_.str.4@PAGE
Lloh21:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	str	w20, [x8]
	str	x19, [x8, #8]
	add	x0, x8, #4
	bl	_init_completion
	add	x0, sp, #8
	mov	w1, #32
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_snprintf
	ldr	x1, [x19, #8]
	add	x0, sp, #8
	bl	_debugfs_create_dir
	mov	x22, x0
	ldr	x8, [x19, #16]
	add	x3, x8, x23
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #128
	mov	x2, x22
Lloh26:
	adrp	x4, _ntb_msit_trigger_fops@GOTPAGE
Lloh27:
	ldr	x4, [x4, _ntb_msit_trigger_fops@GOTPAGEOFF]
	bl	_debugfs_create_file_unsafe
	ldr	x8, [x19, #16]
	add	x3, x8, x23
	mov	x0, x24
	mov	w1, #256
	mov	x2, x22
	mov	x4, x25
	bl	_debugfs_create_file_unsafe
	ldr	x8, [x19, #16]
	add	x3, x8, x23
	mov	x0, x26
	mov	w1, #256
	mov	x2, x22
	mov	x4, x27
	bl	_debugfs_create_file_unsafe
	ldr	x8, [x19, #16]
	add	x3, x8, x23
	mov	x0, x21
	mov	w1, #384
	mov	x2, x22
	mov	x4, x28
	bl	_debugfs_create_file_unsafe
	add	x20, x20, #1
	ldr	x0, [x19, #24]
	bl	_ntb_peer_port_count
	add	x23, x23, #16
	cmp	x20, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
Lloh28:
	adrp	x23, _num_irqs@GOTPAGE
Lloh29:
	ldr	x23, [x23, _num_irqs@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x24, #0
	mov	x20, #0
Lloh30:
	adrp	x21, _ntb_msit_occurrences_fops@GOTPAGE
Lloh31:
	ldr	x21, [x21, _ntb_msit_occurrences_fops@GOTPAGEOFF]
Lloh32:
	adrp	x22, l_.str.5@PAGE
Lloh33:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #32
	mov	x2, x22
	mov	x3, x20
	bl	_snprintf
	ldp	x8, x2, [x19]
	add	x3, x8, x24
	add	x0, sp, #8
	mov	w1, #256
	mov	x4, x21
	bl	_debugfs_create_file_unsafe
	add	x20, x20, #1
	ldrsw	x8, [x23]
	add	x24, x24, #16
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x8, [sp, #40]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ntb_msit_dbgfs_topdir,8,3      ; @ntb_msit_dbgfs_topdir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port"

	.comm	_ntb_msit_local_port_fops,4,2   ; @ntb_msit_local_port_fops
l_.str.1:                               ; @.str.1
	.asciz	"peer%d"

l_.str.2:                               ; @.str.2
	.asciz	"trigger"

	.comm	_ntb_msit_trigger_fops,4,2      ; @ntb_msit_trigger_fops
	.comm	_ntb_msit_port_fops,4,2         ; @ntb_msit_port_fops
l_.str.3:                               ; @.str.3
	.asciz	"count"

	.comm	_ntb_msit_count_fops,4,2        ; @ntb_msit_count_fops
l_.str.4:                               ; @.str.4
	.asciz	"ready"

	.comm	_ntb_msit_ready_fops,4,2        ; @ntb_msit_ready_fops
	.comm	_num_irqs,4,2                   ; @num_irqs
l_.str.5:                               ; @.str.5
	.asciz	"irq%d_occurrences"

	.comm	_ntb_msit_occurrences_fops,4,2  ; @ntb_msit_occurrences_fops
	.no_dead_strip	_ntb_msit_create_dbgfs
.subsections_via_symbols
