	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbox_open
_mbox_open:                             ## @mbox_open
	.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	_DEVICE_FILE_NAME@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rsi
	movq	_MAJOR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_FILE_NAME,8,3           ## @DEVICE_FILE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't open device file: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Try creating a device file with: sudo mknod %s c %d 0\n"

	.comm	_MAJOR_NUM,4,2                  ## @MAJOR_NUM
	.no_dead_strip	_mbox_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbox_open
_mbox_open:                             ; @mbox_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _DEVICE_FILE_NAME@GOTPAGE
Lloh1:
	ldr	x19, [x19, _DEVICE_FILE_NAME@GOTPAGEOFF]
	ldr	x0, [x19]
	mov	w1, #0
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	x1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x1, [x19]
Lloh4:
	adrp	x8, _MAJOR_NUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAJOR_NUM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #-1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_FILE_NAME,8,3           ; @DEVICE_FILE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't open device file: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Try creating a device file with: sudo mknod %s c %d 0\n"

	.comm	_MAJOR_NUM,4,2                  ; @MAJOR_NUM
	.no_dead_strip	_mbox_open
.subsections_via_symbols
