	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utx_active_remove
_utx_active_remove:                     ## @utx_active_remove
	.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_15
## %bb.1:
	movq	%rax, %rbx
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %r13d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	movl	-44(%rbp), %esi
	movl	$4, %edx
	callq	_memcmp
	movl	$-1, %r13d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-8, %esi
	callq	_fseeko
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setle	%al
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, %r13b
	negl	%r13d
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r13d
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %r13d
	jmp	LBB0_2
LBB0_12:
	movq	%rbx, %rdi
	callq	_fclose
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
LBB0_15:
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_13:
	xorl	%eax, %eax
LBB0_16:
	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	_ESRCH,4,2                      ## @ESRCH
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_utx_active_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utx_active_remove
_utx_active_remove:                     ; @utx_active_remove
	.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	x19, 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_11
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	w24, #-1
Lloh6:
	adrp	x23, _SEEK_CUR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SEEK_CUR@GOTPAGEOFF]
Lloh8:
	adrp	x22, _errno@GOTPAGE
Lloh9:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #1
	mov	x3, x20
	bl	_fread
	cbz	w24, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #8]
	sub	w8, w8, #128
	mov	w24, #-1
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #12]
	mov	w2, #4
	bl	_memcmp
	mov	w24, #-1
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #-8
	bl	_fseeko
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #8
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	ldr	w8, [x22]
	cmp	w0, #1
	csel	w21, w8, w21, lt
	csetm	w24, lt
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [x22]
	mov	w24, #-1
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	bl	_fclose
	cbz	w24, LBB0_12
; %bb.10:
	str	w21, [x22]
LBB0_11:
	mov	w0, #-1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_UTX_ACTIVE,4,2           ; @_PATH_UTX_ACTIVE
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_utx_active_remove
.subsections_via_symbols
