	.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	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rsi, %rbx
	addq	$8, %rbx
	movq	_O_RDONLY@GOTPCREL(%rip), %r14
	leaq	L_.str.4(%rip), %r15
	jmp	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_perror
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_close
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	(%r14), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	movq	_SESIOC_GETNOBJ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	leaq	-44(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movq	_SESIOC_GETOBJMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	%r13d, %edx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	cmpl	$0, -44(%rbp)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	$8, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-8(%r12), %r13d
	movl	(%r12), %edi
	callq	_geteltnm
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movq	%rax, %rcx
	callq	_printf
	incq	%r14
	movslq	-44(%rbp), %rax
	addq	$16, %r12
	cmpq	%rax, %r14
	jl	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	%ebx, %edi
	callq	_close
	movq	_O_RDONLY@GOTPCREL(%rip), %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rdi
	callq	_perror
	jmp	LBB0_5
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_SESIOC_GETNOBJ,4,2             ## @SESIOC_GETNOBJ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SESIOC_GETNOBJ"

	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"%s: %d objects\n"

L_.str.2:                               ## @.str.2
	.asciz	"calloc"

	.comm	_SESIOC_GETOBJMAP,4,2           ## @SESIOC_GETOBJMAP
L_.str.3:                               ## @.str.3
	.asciz	"SESIOC_GETOBJMAP"

L_.str.4:                               ## @.str.4
	.asciz	" Object %d: ID 0x%x Type '%s'\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	x19, x1
	ldr	x0, [x19, #8]!
	cbz	x0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x22, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SESIOC_GETNOBJ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SESIOC_GETNOBJ@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh6:
	adrp	x24, l_.str.4@PAGE
Lloh7:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w1, [x22]
	bl	_open
	tbnz	w0, #31, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_ioctl
	tbnz	x0, #63, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _stdout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x19]
	ldr	w3, [sp, #12]
	mov	x1, x21
	bl	_fprintf
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
Lloh11:
	adrp	x8, _SESIOC_GETOBJMAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SESIOC_GETOBJMAP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x26
	bl	_ioctl
	tbnz	x0, #63, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	add	x20, x26, #8
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w28, [x20, #-8]
	ldr	w0, [x20], #16
	bl	_geteltnm
	mov	x3, x0
	mov	x0, x24
	mov	x1, x27
	mov	x2, x28
	bl	_printf
	add	x27, x27, #1
	ldrsw	x8, [sp, #12]
	cmp	x27, x8
	b.lt	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	bl	_free
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_close
	ldr	x0, [x19, #8]!
	cbnz	x0, LBB0_2
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	bl	_perror
	ldr	x0, [x19, #8]!
	cbnz	x0, LBB0_2
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_16:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_SESIOC_GETNOBJ,4,2             ; @SESIOC_GETNOBJ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SESIOC_GETNOBJ"

	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"%s: %d objects\n"

l_.str.2:                               ; @.str.2
	.asciz	"calloc"

	.comm	_SESIOC_GETOBJMAP,4,2           ; @SESIOC_GETOBJMAP
l_.str.3:                               ; @.str.3
	.asciz	"SESIOC_GETOBJMAP"

l_.str.4:                               ; @.str.4
	.asciz	" Object %d: ID 0x%x Type '%s'\n"

.subsections_via_symbols
