	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_flags
_set_flags:                             ## @set_flags
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_task_pt_regs
	movq	%rax, %r14
	movq	_X86_EFLAGS_TF@GOTPCREL(%rip), %r12
	movq	_TIF_FORCED_TF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%rbx, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_clear_tsk_thread_flag
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	callq	_test_tsk_thread_flag
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	orq	(%r12), %rbx
LBB0_4:
	movq	(%r14), %rax
	movq	_FLAG_MASK@GOTPCREL(%rip), %rcx
	xorq	%rax, %rbx
	andq	(%rcx), %rbx
	xorq	%rax, %rbx
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_EFLAGS_TF,8,3              ## @X86_EFLAGS_TF
	.comm	_TIF_FORCED_TF,4,2              ## @TIF_FORCED_TF
	.comm	_FLAG_MASK,8,3                  ## @FLAG_MASK
	.no_dead_strip	_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_flags
_set_flags:                             ; @set_flags
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	bl	_task_pt_regs
	mov	x20, x0
Lloh0:
	adrp	x22, _X86_EFLAGS_TF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _X86_EFLAGS_TF@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _TIF_FORCED_TF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TIF_FORCED_TF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x21
	tst	x8, x19
	b.eq	LBB0_2
; %bb.1:
	bl	_clear_tsk_thread_flag
	b	LBB0_4
LBB0_2:
	bl	_test_tsk_thread_flag
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	orr	x19, x8, x19
LBB0_4:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _FLAG_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAG_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	bic	x8, x8, x9
	and	x9, x9, x19
	orr	x8, x8, x9
	str	x8, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_EFLAGS_TF,8,3              ; @X86_EFLAGS_TF
	.comm	_TIF_FORCED_TF,4,2              ; @TIF_FORCED_TF
	.comm	_FLAG_MASK,8,3                  ; @FLAG_MASK
	.no_dead_strip	_set_flags
.subsections_via_symbols
