	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readSecret
_readSecret:                            ## @readSecret
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	testb	$63, -24(%rbp)
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_lsapi_log
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	movq	_s_secret@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$16, %edx
	callq	_read
	cmpl	$15, %eax
	jg	LBB0_11
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
	movq	%r14, %rsi
	callq	_lsapi_log
	movl	%ebx, %edi
	callq	_close
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSAPI: failed to open secret file: %s!\n"

L_.str.1:                               ## @.str.1
	.asciz	"LSAPI: failed to check state of file: %s!\n"

L_.str.2:                               ## @.str.2
	.asciz	"LSAPI: file permission check failure: %s\n"

	.comm	_s_secret,4,2                   ## @s_secret
L_.str.3:                               ## @.str.3
	.asciz	"LSAPI: failed to read secret from secret file: %s\n"

	.no_dead_strip	_readSecret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readSecret
_readSecret:                            ; @readSecret
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #384
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldrb	w8, [sp, #8]
	tst	w8, #0x3f
	b.eq	LBB0_6
; %bb.3:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_lsapi_log
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _s_secret@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_secret@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_read
	cmp	w0, #15
	b.gt	LBB0_11
; %bb.7:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	mov	x1, x20
	bl	_lsapi_log
	mov	x0, x19
	bl	_close
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	mov	x0, x19
	bl	_close
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSAPI: failed to open secret file: %s!\n"

l_.str.1:                               ; @.str.1
	.asciz	"LSAPI: failed to check state of file: %s!\n"

l_.str.2:                               ; @.str.2
	.asciz	"LSAPI: file permission check failure: %s\n"

	.comm	_s_secret,4,2                   ; @s_secret
l_.str.3:                               ; @.str.3
	.asciz	"LSAPI: failed to read secret from secret file: %s\n"

	.no_dead_strip	_readSecret
.subsections_via_symbols
