	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_console_init               ## -- Begin function osm_console_init
	.p2align	4, 0x90
_osm_console_init:                      ## @osm_console_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$-1, (%rsi)
	movl	32(%rsi), %edi
	movl	4(%rbx), %esi
	movl	$4, %edx
	callq	_strncpy
	movl	4(%rbx), %edi
	movq	_OSM_LOCAL_CONSOLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	movq	_stdout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	callq	_fileno
	movl	%eax, 4(%r14)
	movq	(%rbx), %rdi
	callq	_fileno
	movl	%eax, 8(%r14)
	movq	16(%r14), %rdi
	callq	_osm_console_prompt
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOCAL_CONSOLE,4,2          ## @OSM_LOCAL_CONSOLE
	.comm	_stdin,8,3                      ## @stdin
	.comm	_stdout,8,3                     ## @stdout
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.comm	_OSM_LOG_INFO,4,2               ## @OSM_LOG_INFO
	.comm	_OSM_LOOPBACK_CONSOLE,4,2       ## @OSM_LOOPBACK_CONSOLE
	.comm	_OSM_REMOTE_CONSOLE,4,2         ## @OSM_REMOTE_CONSOLE
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_console_init               ; -- Begin function osm_console_init
	.p2align	2
_osm_console_init:                      ; @osm_console_init
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #-1
	str	w8, [x1]
	ldr	w0, [x1, #32]
	ldr	w1, [x20, #4]
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _OSM_LOCAL_CONSOLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOCAL_CONSOLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stdin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
Lloh6:
	adrp	x20, _stdout@GOTPAGE
Lloh7:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	ldr	x8, [x20]
	stp	x8, x0, [x19, #16]
	bl	_fileno
	str	w0, [x19, #4]
	ldr	x0, [x20]
	bl	_fileno
	str	w0, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_osm_console_prompt
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOCAL_CONSOLE,4,2          ; @OSM_LOCAL_CONSOLE
	.comm	_stdin,8,3                      ; @stdin
	.comm	_stdout,8,3                     ; @stdout
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.comm	_OSM_LOG_INFO,4,2               ; @OSM_LOG_INFO
	.comm	_OSM_LOOPBACK_CONSOLE,4,2       ; @OSM_LOOPBACK_CONSOLE
	.comm	_OSM_REMOTE_CONSOLE,4,2         ; @OSM_REMOTE_CONSOLE
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
