	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_pnpautoload
_command_pnpautoload:                   ## @command_pnpautoload
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	_pnp_verbose_flag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pnp_dump_flag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_optind@GOTPCREL(%rip), %r12
	movl	$1, (%r12)
	movq	_optreset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movb	$1, %cl
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r15d
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_getopt
	xorl	%ecx, %ecx
	cmpl	$118, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.3:
	movslq	(%r12), %rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	subl	%ecx, %r13d
	incl	%r13d
	cmpl	$2, %r13d
	jle	LBB0_5
## %bb.4:
	movq	_CMD_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_5:
	movq	_pnp_buses@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_16
## %bb.6:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_pnp_buses@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	xorl	%eax, %eax
	callq	*8(%rcx,%r13)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	(%r14), %rdi
	callq	_nitems
	cltq
	addq	$16, %r13
	cmpq	%rax, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rdi
	movq	_pnp_buses@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_pnp_buses@GOTPCREL(%rip), %r14
	testb	$1, %r15b
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r15b
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_13
LBB0_15:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_17:
	movq	_CMD_OK@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pnp_verbose_flag,8,3           ## @pnp_verbose_flag
	.comm	_pnp_dump_flag,8,3              ## @pnp_dump_flag
	.comm	_optind,4,2                     ## @optind
	.comm	_optreset,4,2                   ## @optreset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"v"

	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
	.comm	_pnp_buses,8,3                  ## @pnp_buses
L_.str.1:                               ## @.str.1
	.asciz	"Skipping bus %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported bus %s\n"

L_str:                                  ## @str
	.asciz	"Autoloading modules for simplebus"

	.no_dead_strip	_command_pnpautoload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_pnpautoload
_command_pnpautoload:                   ; @command_pnpautoload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _pnp_verbose_flag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pnp_verbose_flag@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _pnp_dump_flag@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pnp_dump_flag@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x23, _optind@GOTPAGE
Lloh7:
	ldr	x23, [x23, _optind@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x23]
Lloh8:
	adrp	x9, _optreset@GOTPAGE
Lloh9:
	ldr	x9, [x9, _optreset@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	mov	w8, #0
	cmp	w0, #118
	b.eq	LBB0_1
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.3:
	ldrsw	x8, [x23]
	sub	x8, x8, #1
	sub	w21, w20, w8
	cmp	w21, #2
	b.le	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
	add	x23, x19, x8, lsl #3
Lloh15:
	adrp	x24, _pnp_buses@GOTPAGE
Lloh16:
	ldr	x24, [x24, _pnp_buses@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x25, #0
	mov	x26, #0
	mov	w27, #0
Lloh17:
	adrp	x19, l_.str.1@PAGE
Lloh18:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh19:
	adrp	x20, l_str@PAGE
Lloh20:
	add	x20, x20, l_str@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	blr	x8
	mov	w27, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	ldr	x0, [x24]
	bl	_nitems
	add	x25, x25, #16
	cmp	x26, w0, sxtw
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #2
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x23, #8]
	ldr	x8, [x24]
	ldr	x1, [x8, x25]
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	tbnz	w22, #0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x25]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	tbnz	w22, #0, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_puts
	b	LBB0_7
LBB0_15:
	cbnz	w27, LBB0_17
LBB0_16:
	ldr	x8, [x23, #8]
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_17:
Lloh23:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_pnp_verbose_flag,8,3           ; @pnp_verbose_flag
	.comm	_pnp_dump_flag,8,3              ; @pnp_dump_flag
	.comm	_optind,4,2                     ; @optind
	.comm	_optreset,4,2                   ; @optreset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"v"

	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
	.comm	_pnp_buses,8,3                  ; @pnp_buses
l_.str.1:                               ; @.str.1
	.asciz	"Skipping bus %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported bus %s\n"

l_str:                                  ; @str
	.asciz	"Autoloading modules for simplebus"

	.no_dead_strip	_command_pnpautoload
.subsections_via_symbols
