	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_tls_dowork               ## -- Begin function check_tls_dowork
	.p2align	4, 0x90
_check_tls_dowork:                      ## @check_tls_dowork
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_BIG_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_interval_test
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	12(%rbx), %r14d
	leaq	8(%rbx), %r15
	leaq	4(%rbx), %r12
	movq	%rbx, %rdi
	callq	_get_link_socket_info
	leaq	-40(%rbp), %r8
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_tls_multi_process
	movq	_TLSMP_ACTIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_update_time
	movq	%rbx, %rdi
	callq	_interval_action
	jmp	LBB0_5
LBB0_3:
	movq	_TLSMP_KILL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_register_signal
LBB0_5:
	movq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_interval_future_trigger
LBB0_6:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_interval_schedule_wakeup
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_context_reschedule_sec
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIG_TIMEOUT,8,3                ## @BIG_TIMEOUT
	.comm	_TLSMP_ACTIVE,4,2               ## @TLSMP_ACTIVE
	.comm	_TLSMP_KILL,4,2                 ## @TLSMP_KILL
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auth-control-exit"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_tls_dowork               ; -- Begin function check_tls_dowork
	.p2align	2
_check_tls_dowork:                      ; @check_tls_dowork
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _BIG_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIG_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_interval_test
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w20, [x19, #12]
	add	x21, x19, #8
	add	x22, x19, #4
	mov	x0, x19
	bl	_get_link_socket_info
	mov	x3, x0
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_tls_multi_process
Lloh3:
	adrp	x8, _TLSMP_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSMP_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	bl	_update_time
	mov	x0, x19
	bl	_interval_action
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _TLSMP_KILL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TLSMP_KILL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_register_signal
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_interval_future_trigger
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_interval_schedule_wakeup
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_context_reschedule_sec
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BIG_TIMEOUT,8,3                ; @BIG_TIMEOUT
	.comm	_TLSMP_ACTIVE,4,2               ; @TLSMP_ACTIVE
	.comm	_TLSMP_KILL,4,2                 ; @TLSMP_KILL
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auth-control-exit"

.subsections_via_symbols
