	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_exec
_tls_exec:                              ## @tls_exec
	.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
	movl	%edi, %r14d
	xorl	%edi, %edi
	cmpl	$4, %r14d
	setge	%dil
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	24(%rbx), %rdi
	callq	_atoi
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PJDLOG_MODE_SYSLOG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PJDLOG_MODE_STD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_pjdlog_init
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	cmpl	$7, %r14d
	jne	LBB0_9
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	8(%rbx), %r14
	movq	24(%rbx), %rdi
	callq	_atoi
	movq	%rax, %r15
	movq	32(%rbx), %r12
	movq	40(%rbx), %r13
	movq	48(%rbx), %rdi
	callq	_atoi
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%rax, %r8
	callq	_tls_exec_server
	jmp	LBB0_9
LBB0_4:
	cmpl	$10, %r14d
	jne	LBB0_9
## %bb.5:
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rdi
	callq	_atoi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rax
	xorl	%r12d, %r12d
	cmpb	$0, (%rax)
	cmovneq	%rax, %r12
	movq	40(%rbx), %r13
	movq	48(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	56(%rbx), %r15
	movq	64(%rbx), %rdi
	callq	_atoi
	movq	%rax, %r14
	movq	72(%rbx), %rdi
	callq	_atoi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	pushq	%rax
	pushq	%r14
	callq	_tls_exec_client
	addq	$16, %rsp
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tls"

	.comm	_PJDLOG_MODE_SYSLOG,4,2         ## @PJDLOG_MODE_SYSLOG
	.comm	_PJDLOG_MODE_STD,4,2            ## @PJDLOG_MODE_STD
L_.str.1:                               ## @.str.1
	.asciz	"client"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"server"

	.no_dead_strip	_tls_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_exec
_tls_exec:                              ; @tls_exec
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	cmp	w0, #3
	cset	w0, gt
	bl	_PJDLOG_ASSERT
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x0, [x19, #24]
	bl	_atoi
Lloh2:
	adrp	x8, _PJDLOG_MODE_SYSLOG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PJDLOG_MODE_SYSLOG@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PJDLOG_MODE_STD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PJDLOG_MODE_STD@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_pjdlog_init
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x19, #16]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cmp	w20, #7
	b.ne	LBB0_6
; %bb.2:
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x20, [x19, #8]
	ldr	x0, [x19, #24]
	bl	_atoi
	mov	x21, x0
	ldp	x22, x23, [x19, #32]
	ldr	x0, [x19, #48]
	bl	_atoi
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_tls_exec_server
	b	LBB0_6
LBB0_4:
	cmp	w20, #10
	b.ne	LBB0_6
; %bb.5:
	ldr	x20, [x19, #8]
	ldr	x0, [x19, #24]
	bl	_atoi
	mov	x21, x0
	ldp	x8, x22, [x19, #32]
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x23, xzr, x8, eq
	ldp	x24, x25, [x19, #48]
	ldr	x0, [x19, #64]
	bl	_atoi
	mov	x26, x0
	ldr	x0, [x19, #72]
	bl	_atoi
	mov	x7, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	mov	x5, x25
	mov	x6, x26
	bl	_tls_exec_client
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tls"

	.comm	_PJDLOG_MODE_SYSLOG,4,2         ; @PJDLOG_MODE_SYSLOG
	.comm	_PJDLOG_MODE_STD,4,2            ; @PJDLOG_MODE_STD
l_.str.1:                               ; @.str.1
	.asciz	"client"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"server"

	.no_dead_strip	_tls_exec
.subsections_via_symbols
