	.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
	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, %r15d
	movq	_DEFAULT_DEVICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IRQ_UNSPECIFIED@GOTPCREL(%rip), %rax
	leaq	L_.str(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_USE_STD_MODE@GOTPCREL(%rip), %rax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	(%rax), %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$-1, %eax
	je	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_usage
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-100(%rax), %ecx
	cmpl	$15, %ecx
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_USE_EXT_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_USE_IRQ@GOTPCREL(%rip), %rax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DO_POLL@GOTPCREL(%rip), %rax
	jmp	LBB0_1
LBB0_11:
	movl	%r14d, -44(%rbp)
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r15d
	cmpl	$1, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:
	movq	(%rbx,%rax,8), %r12
	xorl	%r15d, %r15d
LBB0_13:
	movq	_IRQ_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_15
## %bb.14:
	testl	%r15d, %r15d
	je	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	callq	_usage
LBB0_16:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_18:
	movq	_LPT_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_20:
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_DEFAULT_DEVICE,8,3             ## @DEFAULT_DEVICE
	.comm	_IRQ_UNSPECIFIED,4,2            ## @IRQ_UNSPECIFIED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d:eips"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_USE_EXT_MODE,4,2               ## @USE_EXT_MODE
	.comm	_USE_IRQ,4,2                    ## @USE_IRQ
	.comm	_DO_POLL,4,2                    ## @DO_POLL
	.comm	_USE_STD_MODE,4,2               ## @USE_STD_MODE
	.comm	_optind,8,3                     ## @optind
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.1:                               ## @.str.1
	.asciz	"open"

	.comm	_LPT_IRQ,4,2                    ## @LPT_IRQ
L_.str.2:                               ## @.str.2
	.asciz	"ioctl"

.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
Lloh0:
	adrp	x8, _DEFAULT_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQ_UNSPECIFIED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQ_UNSPECIFIED@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x24, lJTI0_0@PAGE
Lloh7:
	add	x24, x24, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x26, _USE_EXT_MODE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _USE_EXT_MODE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _USE_IRQ@GOTPAGE
Lloh11:
	ldr	x27, [x27, _USE_IRQ@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
Lloh13:
	adrp	x28, _DO_POLL@GOTPAGE
Lloh14:
	ldr	x28, [x28, _DO_POLL@GOTPAGEOFF]
Lloh15:
	adrp	x23, _USE_STD_MODE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _USE_STD_MODE@GOTPAGEOFF]
	mov	x8, x9
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x26
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w25, [x8]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmn	w0, #1
	b.eq	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	bl	_usage
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #100
	cmp	w8, #15
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	adr	x9, LBB0_1
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
Lloh17:
	adrp	x8, _optarg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _optarg@GOTPAGEOFF]
Lloh19:
	ldr	x19, [x8]
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x27
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x28
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x23
	b	LBB0_2
LBB0_11:
	str	w25, [sp, #12]
Lloh20:
	adrp	x8, _optind@GOTPAGE
Lloh21:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x8]
	sub	w8, w21, w9
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.12:
	mov	w8, #0
	ldr	x19, [x20, x9, lsl #3]
LBB0_13:
Lloh23:
	adrp	x9, _IRQ_UNSPECIFIED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IRQ_UNSPECIFIED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w25, w9
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_15
; %bb.14:
	bl	_usage
LBB0_15:
Lloh26:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_17
; %bb.16:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_17:
Lloh31:
	adrp	x8, _LPT_IRQ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LPT_IRQ@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_19
; %bb.18:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_19:
	mov	x0, x19
	bl	_close
	mov	w0, #0
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
                                        ; -- End function
	.comm	_DEFAULT_DEVICE,8,3             ; @DEFAULT_DEVICE
	.comm	_IRQ_UNSPECIFIED,4,2            ; @IRQ_UNSPECIFIED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d:eips"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_USE_EXT_MODE,4,2               ; @USE_EXT_MODE
	.comm	_USE_IRQ,4,2                    ; @USE_IRQ
	.comm	_DO_POLL,4,2                    ; @DO_POLL
	.comm	_USE_STD_MODE,4,2               ; @USE_STD_MODE
	.comm	_optind,8,3                     ; @optind
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.1:                               ; @.str.1
	.asciz	"open"

	.comm	_LPT_IRQ,4,2                    ; @LPT_IRQ
l_.str.2:                               ; @.str.2
	.asciz	"ioctl"

.subsections_via_symbols
