	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function printfile
_printfile:                             ## @printfile
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	$40, -64(%rbp)
	leaq	-64(%rbp), %rsi
	callq	_kldstat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movl	-28(%rbp), %edx
	movq	_HN_AUTOSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HN_DECIMAL@GOTPCREL(%rip), %rax
	movq	_HN_NOSPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rcx
	leaq	-69(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_humanize_number
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movq	_POINTER_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r8
	movl	-32(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_printf
	testl	%r14d, %r14d
	jne	LBB0_6
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_err
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_6:
	movq	-40(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	movl	%r15d, %edi
	callq	_kldfirstmod
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_printmod
	movl	%ebx, %edi
	callq	_modfnext
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_8
	jmp	LBB0_10
LBB0_4:
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movq	_POINTER_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r8
	movl	-28(%rbp), %r9d
	movl	-32(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	testl	%r14d, %r14d
	jne	LBB0_6
LBB0_9:
	movl	$10, %edi
	callq	_putchar
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't stat file id %d"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_HN_AUTOSCALE,4,2               ## @HN_AUTOSCALE
	.comm	_HN_DECIMAL,4,2                 ## @HN_DECIMAL
	.comm	_HN_NOSPACE,4,2                 ## @HN_NOSPACE
L_.str.2:                               ## @.str.2
	.asciz	"%2d %4d %*p %5s %s"

	.comm	_POINTER_WIDTH,4,2              ## @POINTER_WIDTH
L_.str.3:                               ## @.str.3
	.asciz	"%2d %4d %*p %8zx %s"

L_.str.4:                               ## @.str.4
	.asciz	" (%s)\n"

L_str:                                  ## @str
	.asciz	"\tContains modules:"

L_str.8:                                ## @str.8
	.asciz	"\t\t Id Name"

	.no_dead_strip	_printfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function printfile
_printfile:                             ; @printfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #40
	str	w8, [sp, #56]
	add	x1, sp, #56
	bl	_kldstat
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbz	w21, LBB0_5
; %bb.2:
	ldr	w2, [sp, #92]
Lloh0:
	adrp	x8, _HN_AUTOSCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HN_AUTOSCALE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HN_DECIMAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HN_DECIMAL@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _HN_NOSPACE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HN_NOSPACE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w5, w9, w8
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x21, sp, #51
	add	x0, sp, #51
	mov	w1, #5
	bl	_humanize_number
Lloh11:
	adrp	x8, _POINTER_WIDTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POINTER_WIDTH@GOTPAGEOFF]
	ldr	x9, [sp, #72]
	ldp	w10, w11, [sp, #60]
Lloh13:
	ldr	w8, [x8]
	ldr	w12, [sp, #88]
	stp	x21, x12, [sp, #32]
	stp	x8, x9, [sp, #16]
	stp	x10, x11, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
	cbnz	w20, LBB0_7
LBB0_4:
	mov	w0, #10
	bl	_putchar
	b	LBB0_10
LBB0_5:
Lloh18:
	adrp	x8, _POINTER_WIDTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _POINTER_WIDTH@GOTPAGEOFF]
	ldr	x9, [sp, #72]
	ldp	w10, w11, [sp, #60]
Lloh20:
	ldr	w8, [x8]
	ldp	w13, w12, [sp, #88]
	stp	x12, x13, [sp, #32]
	stp	x8, x9, [sp, #16]
	stp	x10, x11, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_printf
	cbz	w20, LBB0_4
LBB0_7:
	ldr	x8, [sp, #80]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh27:
	adrp	x0, l_str.8@PAGE
Lloh28:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_kldfirstmod
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x19, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_printmod
	mov	x0, x19
	bl	_modfnext
	mov	x19, x0
	cmp	w0, #0
	b.gt	LBB0_9
LBB0_10:
	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
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't stat file id %d"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_HN_AUTOSCALE,4,2               ; @HN_AUTOSCALE
	.comm	_HN_DECIMAL,4,2                 ; @HN_DECIMAL
	.comm	_HN_NOSPACE,4,2                 ; @HN_NOSPACE
l_.str.2:                               ; @.str.2
	.asciz	"%2d %4d %*p %5s %s"

	.comm	_POINTER_WIDTH,4,2              ; @POINTER_WIDTH
l_.str.3:                               ; @.str.3
	.asciz	"%2d %4d %*p %8zx %s"

l_.str.4:                               ; @.str.4
	.asciz	" (%s)\n"

l_str:                                  ; @str
	.asciz	"\tContains modules:"

l_str.8:                                ; @str.8
	.asciz	"\t\t Id Name"

	.no_dead_strip	_printfile
.subsections_via_symbols
