	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utx_active_add
_utx_active_add:                        ## @utx_active_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	__PATH_UTX_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_futx_open
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fread
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.2:
	movl	$-1, %ebx
	leaq	-48(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fread
	cmpl	$1, %eax
	jne	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %r13d
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %edi
	movl	-44(%rbp), %esi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$131, %r13d
	je	LBB0_8
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$132, %r13d
	je	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %ebx
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_ftello
                                        ## kill: def $eax killed $eax def $rax
	leal	-8(%rax), %ebx
	cmpl	$-1, %eax
	cmovel	%eax, %ebx
	jmp	LBB0_3
LBB0_10:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_11:
	cmpl	$-1, %ebx
	je	LBB0_15
## %bb.12:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movl	$-8, %ebx
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_fseeko
	cmpl	$-1, %eax
	je	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	testl	%eax, %eax
	jle	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_fclose
	jmp	LBB0_19
LBB0_17:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_fclose
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	movl	%ebx, (%r14)
	movl	$1, %eax
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_UTX_ACTIVE,4,2           ## @_PATH_UTX_ACTIVE
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_utx_active_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utx_active_add
_utx_active_add:                        ; @utx_active_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, __PATH_UTX_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PATH_UTX_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_futx_open
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.2:
	mov	w21, #-1
Lloh3:
	adrp	x22, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SEEK_CUR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #132
	ccmn	w21, #1, #0, ne
	b.eq	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.ne	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [sp, #8]
	sub	w8, w23, #128
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #4]
	ldr	w1, [sp, #12]
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #131
	ccmn	w21, #1, #0, eq
	b.ne	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_ftello
	sub	w8, w0, #8
	cmn	w0, #1
	csinv	w21, w8, wzr, ne
	b	LBB0_4
LBB0_9:
	mov	w0, #-1
	b	LBB0_19
LBB0_10:
	cmn	w21, #1
	b.eq	LBB0_14
; %bb.11:
Lloh5:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w21, #-8
LBB0_13:
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_fseeko
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_14:
	mov	x0, x20
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_fclose
	b	LBB0_18
LBB0_16:
Lloh7:
	adrp	x20, _errno@GOTPAGE
Lloh8:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_fclose
	cbz	w21, LBB0_18
; %bb.17:
	str	w21, [x20]
	mov	w0, #1
	b	LBB0_19
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_UTX_ACTIVE,4,2           ; @_PATH_UTX_ACTIVE
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_utx_active_add
.subsections_via_symbols
