	.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, %rbx
	movl	%edi, %r15d
	movq	_MAP_FAILED@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	(%rsi), %rdi
	callq	_basename
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_usage
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_3:
	movq	_optind@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_usage
LBB0_5:
	xorl	%eax, %eax
	callq	_banner
	movq	__PATH_DEVMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	movq	_PIR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PIR_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%edi, %edi
	movl	%ebx, %r8d
	callq	_mmap
	movq	%rax, %r14
	cmpq	(%r13), %rax
	jne	LBB0_18
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_perror
LBB0_10:
	xorl	%r15d, %r15d
	cmpq	(%r13), %r14
	jne	LBB0_15
LBB0_12:
	cmpl	$-1, %ebx
	jne	LBB0_16
LBB0_13:
	testb	%r15b, %r15b
	je	LBB0_17
LBB0_14:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_18:
	movq	%r14, %rdi
	callq	_find_pir_table
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_10
LBB0_20:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_dump_pir_table
	movb	$1, %r15b
	cmpq	(%r13), %r14
	je	LBB0_12
LBB0_15:
	movq	_PIR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_munmap
	cmpl	$-1, %ebx
	je	LBB0_13
LBB0_16:
	movl	%ebx, %edi
	callq	_close
	testb	%r15b, %r15b
	jne	LBB0_14
LBB0_17:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_progname,4,2                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h"

	.comm	_optind,8,3                     ## @optind
	.comm	__PATH_DEVMEM,4,2               ## @_PATH_DEVMEM
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open"

	.comm	_PIR_SIZE,4,2                   ## @PIR_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_PIR_BASE,4,2                   ## @PIR_BASE
L_.str.2:                               ## @.str.2
	.asciz	"mmap"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"PIR table signature not found.\r\n"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _MAP_FAILED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAP_FAILED@GOTPAGEOFF]
	ldr	x19, [x23]
	ldr	x0, [x1]
	bl	_basename
Lloh2:
	adrp	x8, _progname@GOTPAGE
Lloh3:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_usage
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	cmn	w0, #1
	b.ne	LBB0_2
LBB0_3:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w20, w8
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	bl	_usage
LBB0_5:
	bl	_banner
Lloh12:
	adrp	x8, __PATH_DEVMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, __PATH_DEVMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
Lloh18:
	adrp	x21, _PIR_SIZE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PIR_SIZE@GOTPAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w1, [x21]
Lloh22:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x8, _PIR_BASE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PIR_BASE@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
	mov	x0, #0
	mov	x4, x20
	bl	_mmap
	mov	x19, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.8:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_perror
LBB0_10:
	mov	w22, #0
LBB0_11:
	ldr	x8, [x23]
	cmp	x19, x8
	b.eq	LBB0_13
; %bb.12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_munmap
LBB0_13:
	cmn	w20, #1
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_close
LBB0_15:
Lloh33:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh35:
	adrp	x9, _EXIT_FAILURE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _EXIT_FAILURE@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, ne
	ldr	w0, [x8]
	bl	_exit
LBB0_16:
	mov	x0, x19
	bl	_find_pir_table
	cbnz	x0, LBB0_18
; %bb.17:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_10
LBB0_18:
	mov	x1, x19
	bl	_dump_pir_table
	mov	w22, #1
	b	LBB0_11
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_progname,4,2                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h"

	.comm	_optind,8,3                     ; @optind
	.comm	__PATH_DEVMEM,4,2               ; @_PATH_DEVMEM
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open"

	.comm	_PIR_SIZE,4,2                   ; @PIR_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_PIR_BASE,4,2                   ; @PIR_BASE
l_.str.2:                               ; @.str.2
	.asciz	"mmap"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"PIR table signature not found.\r\n"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
.subsections_via_symbols
