	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3_read_awssecret
_s3_read_awssecret:                     ## @s3_read_awssecret
	.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	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.6:
	leaq	-160(%rbp), %rdi
	movl	$1, %esi
	movl	$127, %edx
	movq	%rbx, %rcx
	callq	_fread
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fclose
	movslq	%r14d, %rax
	movb	$0, -160(%rbp,%rax)
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-161(%rbp,%rbx), %eax
	testb	%al, %al
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$10, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	12(%rax), %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_strcat
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_10:
	movb	$0, -161(%rbp,%rbx)
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-160(%rbp,%rbx), %eax
	incq	%rbx
	cmpb	$10, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	%al, %al
	jne	LBB0_11
LBB0_13:
	movb	$0, -161(%rbp,%rbx)
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r14
	leaq	-160(%rbp), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rax
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOME"

L_.str.1:                               ## @.str.1
	.asciz	"/.awssecret"

L_.str.2:                               ## @.str.2
	.asciz	"r"

	.no_dead_strip	_s3_read_awssecret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3_read_awssecret
_s3_read_awssecret:                     ; @s3_read_awssecret
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	mov	x19, x0
LBB0_2:
	cbz	x19, LBB0_13
; %bb.3:
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #127
	mov	x3, x19
	bl	_fread
	mov	x20, x0
	mov	x0, x19
	bl	_fclose
	mov	x8, #0
	strb	wzr, [x21, w20, sxtw]
	ldrb	w9, [x21, x8]
	cbz	w9, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #10
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x21, x8]
	cbnz	w9, LBB0_4
LBB0_6:
	mov	x19, #0
	b	LBB0_13
LBB0_7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_strlen
	mov	x0, x19
	bl	_strlen
	add	w0, w0, #12
	bl	_malloc
	mov	x20, x0
	mov	x1, x19
	bl	_strcpy
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcat
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fopen
	mov	x19, x0
	cbz	x20, LBB0_2
; %bb.9:
	mov	x0, x20
	bl	_free
	b	LBB0_2
LBB0_10:
	add	x9, sp, #8
	strb	wzr, [x9, x8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x9, x8
	ldrb	w10, [x10, #1]
	add	x8, x8, #1
	cmp	w10, #10
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_11
; %bb.12:
	add	x9, sp, #8
	strb	wzr, [x9, x8]
	add	w20, w8, #1
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, x20
	bl	_memcpy
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOME"

l_.str.1:                               ; @.str.1
	.asciz	"/.awssecret"

l_.str.2:                               ; @.str.2
	.asciz	"r"

	.no_dead_strip	_s3_read_awssecret
.subsections_via_symbols
