	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frontend_switch_get_os
_frontend_switch_get_os:                ## @frontend_switch_get_os
	.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	%rbx
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_strlcpy
	movl	$0, (%r15)
	movl	$0, (%r14)
	movq	_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_sm_init
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_LIB_ASSERT_OK
	movq	_fail_sm@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	leaq	-292(%rbp), %rdi
	callq	_sm_get_service
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_LIB_ASSERT_OK
	movl	$3, %edi
	callq	_ipc_make_request
	movl	%eax, %ebx
	movl	%eax, -300(%rbp)
	leaq	-288(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movl	$26, %edx
	callq	_ipc_make_buffer
	movl	%eax, -296(%rbp)
	movq	_buffer_ptrs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-296(%rbp), %rsi
	movl	%ebx, %edi
	callq	_ipc_msg_set_buffers
	movq	_fail_object@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-292(%rbp), %edi
	movq	_ipc_default_response_fmt@GOTPCREL(%rip), %rdx
	leaq	-300(%rbp), %rsi
	callq	_ipc_send
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_LIB_ASSERT_OK
	leaq	-184(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-304(%rbp), %r8
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_sscanf
	movl	-292(%rbp), %edi
	callq	_ipc_close
	xorl	%eax, %eax
	callq	_sm_finalize
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Horizon OS"

	.comm	_fail,4,2                       ## @fail
	.comm	_fail_sm,4,2                    ## @fail_sm
L_.str.1:                               ## @.str.1
	.asciz	"set:sys"

	.comm	_buffer_ptrs,4,2                ## @buffer_ptrs
	.comm	_fail_object,4,2                ## @fail_object
	.comm	_ipc_default_response_fmt,4,2   ## @ipc_default_response_fmt
L_.str.2:                               ## @.str.2
	.asciz	"%d.%d.%d"

	.no_dead_strip	_frontend_switch_get_os
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frontend_switch_get_os
_frontend_switch_get_os:                ; @frontend_switch_get_os
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x19, x3
	mov	x20, x2
	mov	x2, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcpy
	str	wzr, [x20]
	str	wzr, [x19]
Lloh5:
	adrp	x8, _fail@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fail@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	bl	_sm_init
	mov	x1, x0
	mov	x0, x21
	bl	_LIB_ASSERT_OK
Lloh8:
	adrp	x8, _fail_sm@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fail_sm@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_sm_get_service
	mov	x1, x0
	mov	x0, x21
	bl	_LIB_ASSERT_OK
	mov	w0, #3
	bl	_ipc_make_request
	mov	x21, x0
	str	w0, [sp, #12]
	add	x22, sp, #24
	add	x0, sp, #24
	mov	w1, #256
	mov	w2, #26
	bl	_ipc_make_buffer
	str	w0, [sp, #8]
Lloh13:
	adrp	x8, _buffer_ptrs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _buffer_ptrs@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ipc_msg_set_buffers
Lloh16:
	adrp	x8, _fail_object@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fail_object@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	ldr	w0, [sp, #16]
Lloh19:
	adrp	x2, _ipc_default_response_fmt@GOTPAGE
Lloh20:
	ldr	x2, [x2, _ipc_default_response_fmt@GOTPAGEOFF]
	add	x1, sp, #12
	bl	_ipc_send
	mov	x1, x0
	mov	x0, x21
	bl	_LIB_ASSERT_OK
	add	x0, x22, #104
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x4, sp, #20
	mov	x2, x20
	mov	x3, x19
	bl	_sscanf
	ldr	w0, [sp, #16]
	bl	_ipc_close
	bl	_sm_finalize
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Horizon OS"

	.comm	_fail,4,2                       ; @fail
	.comm	_fail_sm,4,2                    ; @fail_sm
l_.str.1:                               ; @.str.1
	.asciz	"set:sys"

	.comm	_buffer_ptrs,4,2                ; @buffer_ptrs
	.comm	_fail_object,4,2                ; @fail_object
	.comm	_ipc_default_response_fmt,4,2   ; @ipc_default_response_fmt
l_.str.2:                               ; @.str.2
	.asciz	"%d.%d.%d"

	.no_dead_strip	_frontend_switch_get_os
.subsections_via_symbols
