	.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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$3, %edi
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	movq	%rdi, -24(%rbp)
	leaq	-24(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	-24(%rbp), %rcx
	cmpq	16(%rbx), %rcx
	je	LBB0_5
## %bb.3:
	movq	%rax, -40(%rbp)
	movq	_SESIOC_GETOBJSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	%r14d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	12(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_7
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	8(%rbx), %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	_perror
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s device objectid\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_SESIOC_GETOBJSTAT,4,2          ## @SESIOC_GETOBJSTAT
L_.str.1:                               ## @.str.1
	.asciz	"SESIOC_GETOBJSTAT"

	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"Object 0x%x: 0x%x 0x%x 0x%x 0x%x\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, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	cmp	w0, #3
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x19, x0
	ldr	x0, [x20, #16]
	str	x0, [sp, #40]
	add	x1, sp, #40
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #40]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	stur	x0, [x29, #-32]
Lloh3:
	adrp	x8, _SESIOC_GETOBJSTAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SESIOC_GETOBJSTAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #32
	mov	x0, x19
	bl	_ioctl
	tbnz	x0, #63, LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x8, x9, [x29, #-32]
	ldp	w10, w11, [x9]
	ldp	w12, w9, [x9, #8]
	stp	x12, x9, [sp, #24]
	stp	x10, x11, [sp, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_close
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x0, [x20, #8]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_perror
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s device objectid\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_SESIOC_GETOBJSTAT,4,2          ; @SESIOC_GETOBJSTAT
l_.str.1:                               ; @.str.1
	.asciz	"SESIOC_GETOBJSTAT"

	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"Object 0x%x: 0x%x 0x%x 0x%x 0x%x\n"

.subsections_via_symbols
