	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	movl	%ebx, %edi
	callq	_close
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_str.6(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_str.5(%rip), %rdi
LBB0_4:
	callq	_puts
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/puffs"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_errno,8,3                      ## @errno
	.comm	_ENXIO,8,3                      ## @ENXIO
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_str:                                  ## @str
	.asciz	"failed"

L_str.5:                                ## @str.5
	.asciz	"eacces"

L_str.6:                                ## @str.6
	.asciz	"enxio"

L_str.7:                                ## @str.7
	.asciz	"yes"

.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x0, l_str.7@PAGE
Lloh6:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_close
	b	LBB0_7
LBB0_2:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _ENXIO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_str.6@PAGE
Lloh14:
	add	x0, x0, l_str.6@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x9, _EACCES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
Lloh18:
	adrp	x0, l_str.5@PAGE
Lloh19:
	add	x0, x0, l_str.5@PAGEOFF
LBB0_6:
	bl	_puts
LBB0_7:
Lloh20:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh24:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/puffs"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_errno,8,3                      ; @errno
	.comm	_ENXIO,8,3                      ; @ENXIO
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_str:                                  ; @str
	.asciz	"failed"

l_str.5:                                ; @str.5
	.asciz	"eacces"

l_str.6:                                ; @str.6
	.asciz	"enxio"

l_str.7:                                ; @str.7
	.asciz	"yes"

.subsections_via_symbols
