	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getstrfromtype_locked
_getstrfromtype_locked:                 ## @getstrfromtype_locked
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	movq	_fp@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.1:
	movq	_AUDIT_CONTROL_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rdx
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_linestr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_AU_LINE_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movabsq	$4294968832, %r12               ## imm = 0x100000600
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rdi
	movl	(%r15), %esi
	movq	(%r13), %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r14), %rbx
	cmpb	$35, (%rbx)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rbx, %rax
	decq	%rax
	cmpq	%rbx, %rax
	jb	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax), %ecx
	cmpq	$32, %rcx
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	btq	%rcx, %r12
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movb	$0, (%rax)
	decq	%rax
	movq	(%r14), %rbx
	cmpq	%rbx, %rax
	jae	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_delim@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rdx
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:
	movq	(%r13), %rdi
	callq	_ferror
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$-1, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_fp,8,3                         ## @fp
	.comm	_AUDIT_CONTROL_FILE,4,2         ## @AUDIT_CONTROL_FILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_linestr,8,3                    ## @linestr
	.comm	_AU_LINE_MAX,4,2                ## @AU_LINE_MAX
	.comm	_delim,4,2                      ## @delim
	.no_dead_strip	_getstrfromtype_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getstrfromtype_locked
_getstrfromtype_locked:                 ; @getstrfromtype_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1]
Lloh0:
	adrp	x22, _fp@GOTPAGE
Lloh1:
	ldr	x22, [x22, _fp@GOTPAGEOFF]
	ldr	x2, [x22]
	cbnz	x2, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AUDIT_CONTROL_FILE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUDIT_CONTROL_FILE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x2, x0
	str	x0, [x22]
	cbz	x0, LBB0_14
LBB0_2:
Lloh7:
	adrp	x23, _linestr@GOTPAGE
Lloh8:
	ldr	x23, [x23, _linestr@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh9:
	adrp	x24, _AU_LINE_MAX@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AU_LINE_MAX@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.3:
Lloh11:
	adrp	x25, _delim@GOTPAGE
Lloh12:
	ldr	x25, [x25, _delim@GOTPAGEOFF]
	mov	w26, #1
	mov	x27, #1536
	movk	x27, #1, lsl #32
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23]
	ldr	w1, [x24]
	ldr	x2, [x22]
	bl	_fgets
	cbz	x0, LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x21, [x23]
	ldrb	w8, [x21]
	cmp	w8, #35
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_strlen
	add	x8, x21, x0
	sub	x8, x8, #1
	cmp	x8, x21
	b.lo	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8]
	cmp	w9, #32
	lsl	x9, x26, x9
	and	x9, x9, x27
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	strb	wzr, [x8], #-1
	ldr	x21, [x23]
	cmp	x8, x21
	b.hs	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	add	x2, sp, #8
	mov	x0, x21
	bl	_strtok_r
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.11:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_13
LBB0_12:
	ldr	x0, [x22]
	bl	_ferror
	cmp	x0, #0
	csetm	w0, ne
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	w0, #-1
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_fp,8,3                         ; @fp
	.comm	_AUDIT_CONTROL_FILE,4,2         ; @AUDIT_CONTROL_FILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_linestr,8,3                    ; @linestr
	.comm	_AU_LINE_MAX,4,2                ; @AU_LINE_MAX
	.comm	_delim,4,2                      ; @delim
	.no_dead_strip	_getstrfromtype_locked
.subsections_via_symbols
