	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_device_files
_remove_device_files:                   ## @remove_device_files
	.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	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_dget
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_d_inode
	movl	%eax, %edi
	callq	_inode_lock
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-58(%rbp), %r14
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_snprintf
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_lookup_one_len
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	leaq	-58(%rbp), %rsi
	callq	_pr_err
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_d_inode
	movl	%eax, %edi
	callq	_inode_lock
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_remove_file
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_remove_file
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_remove_file
	cmpl	$0, 4(%r15)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %r14
	movq	_QIB_HAS_QSFP@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	4(%r15), %ebx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_remove_file
	movl	(%r13), %eax
	testl	%eax, 8(%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_remove_file
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_remove_file
	movq	%r12, %rdi
	callq	_d_inode
	movl	%eax, %edi
	callq	_inode_unlock
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_d_inode
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_simple_rmdir
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_d_drop
	movq	%r12, %rdi
	callq	_dput
LBB0_8:
	movq	%rbx, %rdi
	callq	_d_inode
	movl	%eax, %edi
	callq	_inode_unlock
	movq	%rbx, %rdi
	callq	_dput
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

L_.str.1:                               ## @.str.1
	.asciz	"Lookup of %s failed\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"counter_names"

L_.str.4:                               ## @.str.4
	.asciz	"portcounter_names"

L_.str.5:                               ## @.str.5
	.asciz	"port%dcounters"

	.comm	_QIB_HAS_QSFP,4,2               ## @QIB_HAS_QSFP
L_.str.6:                               ## @.str.6
	.asciz	"qsfp%d"

L_.str.7:                               ## @.str.7
	.asciz	"flash"

	.no_dead_strip	_remove_device_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_device_files
_remove_device_files:                   ; @remove_device_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x0]
	bl	_dget
	mov	x19, x0
	bl	_d_inode
	bl	_inode_lock
	ldr	w3, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #30
	mov	w1, #10
	bl	_snprintf
	add	x0, sp, #30
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #30
	mov	x1, x19
	bl	_lookup_one_len
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #30
	bl	_pr_err
	b	LBB0_8
LBB0_2:
	mov	x0, x21
	bl	_d_inode
	bl	_inode_lock
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_remove_file
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_remove_file
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_remove_file
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
Lloh13:
	adrp	x23, l_.str.5@PAGE
Lloh14:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh15:
	adrp	x25, _QIB_HAS_QSFP@GOTPAGE
Lloh16:
	ldr	x25, [x25, _QIB_HAS_QSFP@GOTPAGEOFF]
Lloh17:
	adrp	x24, l_.str.6@PAGE
Lloh18:
	add	x24, x24, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	add	x0, sp, #6
	mov	x1, x23
	mov	x2, x22
	bl	_sprintf
	add	x1, sp, #6
	mov	x0, x21
	bl	_remove_file
	ldr	w8, [x20, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #6
	mov	x1, x24
	mov	x2, x22
	bl	_sprintf
	add	x1, sp, #6
	mov	x0, x21
	bl	_remove_file
	b	LBB0_4
LBB0_7:
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_remove_file
	mov	x0, x21
	bl	_d_inode
	bl	_inode_unlock
	mov	x0, x19
	bl	_d_inode
	mov	x1, x21
	bl	_simple_rmdir
	mov	x20, x0
	mov	x0, x21
	bl	_d_drop
	mov	x0, x21
	bl	_dput
LBB0_8:
	mov	x0, x19
	bl	_d_inode
	bl	_inode_unlock
	mov	x0, x19
	bl	_dput
	ldr	x8, [sp, #40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	"Lookup of %s failed\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"counter_names"

l_.str.4:                               ; @.str.4
	.asciz	"portcounter_names"

l_.str.5:                               ; @.str.5
	.asciz	"port%dcounters"

	.comm	_QIB_HAS_QSFP,4,2               ; @QIB_HAS_QSFP
l_.str.6:                               ; @.str.6
	.asciz	"qsfp%d"

l_.str.7:                               ; @.str.7
	.asciz	"flash"

	.no_dead_strip	_remove_device_files
.subsections_via_symbols
