	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r15
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$112, %eax
	jg	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$110, %eax
	jne	LBB0_5
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$113, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$118, %eax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r14d
	jmp	LBB0_2
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpl	%ebx, %r15d
	jne	LBB0_12
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_usage
LBB0_28:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12,%r15,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r13d
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	cmpl	%r15d, %ebx
	je	LBB0_28
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r15,8), %rdi
	movl	%r14d, %esi
	callq	_path_check
	testq	%rax, %rax
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12,%r15,8), %rdi
	callq	_kldload
	testl	%eax, %eax
	js	LBB0_15
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12,%r15,8), %rsi
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_27
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	sete	%cl
	andb	-48(%rbp), %cl                  ## 1-byte Folded Reload
	cmpb	$1, %cl
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12,%r15,8), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_27
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$128, %eax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$129, %eax
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12,%r15,8), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_warnx
	jmp	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12,%r15,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nqv"

	.comm	_optind,8,3                     ## @optind
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"%s is already loaded\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't load %s: module already loaded or in kernel"

L_.str.3:                               ## @.str.3
	.asciz	"an error occurred while loading module %s. Please check dmesg(8) for more details."

L_.str.4:                               ## @.str.4
	.asciz	"can't load %s"

L_.str.5:                               ## @.str.5
	.asciz	"Loaded %s, id=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x20, x1
	mov	x21, x0
	mov	w25, #0
	mov	w19, #0
	mov	w26, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmp	w0, #112
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #113
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #118
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w19, #0
	mov	w26, #1
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	mov	w19, #1
	b	LBB0_2
LBB0_10:
Lloh2:
	adrp	x8, _optind@GOTPAGE
Lloh3:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	subs	w28, w8, w21
	b.ne	LBB0_13
; %bb.11:
	bl	_usage
	mov	w27, #0
LBB0_12:
	cmp	w27, #0
	cset	w0, ne
	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
LBB0_13:
	mov	w27, #0
	add	x21, x20, x8, lsl #3
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh9:
	adrp	x23, l_.str.4@PAGE
Lloh10:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh11:
	adrp	x24, l_.str.5@PAGE
Lloh12:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x21]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_warnx
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w27, w27, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #8
	adds	w28, w28, #1
	b.hs	LBB0_12
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x19
	bl	_path_check
	cbnz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x21]
	bl	_kldload
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	w26, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x21]
	str	x0, [sp]
	mov	x0, x24
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x22]
	cmp	w8, #129
	cset	w9, eq
	and	w9, w25, w9
	cmp	w9, #1
	b.ne	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	w26, LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x21]
	mov	x0, x20
LBB0_25:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_printf
	b	LBB0_17
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, #129
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x21]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_29:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x1, [x21]
	mov	x0, x23
	bl	_warn
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nqv"

	.comm	_optind,8,3                     ; @optind
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"%s is already loaded\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't load %s: module already loaded or in kernel"

l_.str.3:                               ; @.str.3
	.asciz	"an error occurred while loading module %s. Please check dmesg(8) for more details."

l_.str.4:                               ; @.str.4
	.asciz	"can't load %s"

l_.str.5:                               ; @.str.5
	.asciz	"Loaded %s, id=%d\n"

.subsections_via_symbols
