	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctl_error
_ctl_error:                             ## @ctl_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_numctlerrors@GOTPCREL(%rip), %rax
	incl	(%rax)
	movslq	%edi, %rbx
	movl	$3, %edi
	movq	%rbx, %rsi
	callq	_DPRINTF
	movq	_CTL_RESPONSE@GOTPCREL(%rip), %rax
	movq	_CTL_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_res_opcode@GOTPCREL(%rip), %rax
	movq	_CTL_OP_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax), %edx
	orl	%ecx, %edx
	movq	_rpkt@GOTPCREL(%rip), %r14
	movl	%edx, (%r14)
	shll	$8, %ebx
	movzwl	%bx, %edi
	callq	_htons
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	movq	_res_authenticate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_sys_authenticate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_res_keyid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CTL_HEADER_LEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	_rpkt@GOTPCREL(%rip), %r14
	movq	%r14, %rsi
	callq	_authencrypt
	movq	_rmt_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_lcl_inter@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addq	(%rbx), %rax
	movl	$-2, %edx
	movq	%r14, %rcx
	movq	%rax, %r8
	jmp	LBB0_4
LBB0_3:
	movq	_rmt_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lcl_inter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CTL_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_rpkt@GOTPCREL(%rip), %rcx
	movl	$-3, %edx
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sendpkt                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_numctlerrors,4,2               ## @numctlerrors
	.comm	_CTL_RESPONSE,8,3               ## @CTL_RESPONSE
	.comm	_CTL_ERROR,4,2                  ## @CTL_ERROR
	.comm	_res_opcode,4,2                 ## @res_opcode
	.comm	_CTL_OP_MASK,4,2                ## @CTL_OP_MASK
	.comm	_rpkt,24,3                      ## @rpkt
	.comm	_res_authenticate,8,3           ## @res_authenticate
	.comm	_sys_authenticate,8,3           ## @sys_authenticate
	.comm	_res_keyid,4,2                  ## @res_keyid
	.comm	_CTL_HEADER_LEN,8,3             ## @CTL_HEADER_LEN
	.comm	_rmt_addr,4,2                   ## @rmt_addr
	.comm	_lcl_inter,4,2                  ## @lcl_inter
	.no_dead_strip	_ctl_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctl_error
_ctl_error:                             ; @ctl_error
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _numctlerrors@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numctlerrors@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	sxtw	x1, w19
	mov	w0, #3
	bl	_DPRINTF
Lloh2:
	adrp	x8, _CTL_RESPONSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CTL_RESPONSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CTL_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CTL_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _res_opcode@GOTPAGE
Lloh9:
	ldr	x9, [x9, _res_opcode@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _CTL_OP_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CTL_OP_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w8, w9
Lloh14:
	adrp	x20, _rpkt@GOTPAGE
Lloh15:
	ldr	x20, [x20, _rpkt@GOTPAGEOFF]
	str	w8, [x20]
	ubfiz	w0, w19, #8, #8
	bl	_htons
	str	w0, [x20, #16]
	str	xzr, [x20, #8]
Lloh16:
	adrp	x8, _res_authenticate@GOTPAGE
Lloh17:
	ldr	x8, [x8, _res_authenticate@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh19:
	adrp	x8, _sys_authenticate@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sys_authenticate@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh22:
	adrp	x8, _res_keyid@GOTPAGE
Lloh23:
	ldr	x8, [x8, _res_keyid@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x20, _CTL_HEADER_LEN@GOTPAGE
Lloh26:
	ldr	x20, [x20, _CTL_HEADER_LEN@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh27:
	adrp	x19, _rpkt@GOTPAGE
Lloh28:
	ldr	x19, [x19, _rpkt@GOTPAGEOFF]
	mov	x1, x19
	bl	_authencrypt
Lloh29:
	adrp	x8, _rmt_addr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _rmt_addr@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _lcl_inter@GOTPAGE
Lloh33:
	ldr	x9, [x9, _lcl_inter@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
	ldr	x9, [x20]
	add	x4, x9, x0
	mov	x0, x8
	mov	w2, #-2
	mov	x3, x19
	b	LBB0_4
LBB0_3:
Lloh35:
	adrp	x8, _rmt_addr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _rmt_addr@GOTPAGEOFF]
Lloh37:
	adrp	x9, _lcl_inter@GOTPAGE
Lloh38:
	ldr	x9, [x9, _lcl_inter@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	ldr	w1, [x9]
Lloh41:
	adrp	x8, _CTL_HEADER_LEN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CTL_HEADER_LEN@GOTPAGEOFF]
Lloh43:
	adrp	x3, _rpkt@GOTPAGE
Lloh44:
	ldr	x3, [x3, _rpkt@GOTPAGEOFF]
Lloh45:
	ldr	x4, [x8]
	mov	w2, #-3
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sendpkt
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh45
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_numctlerrors,4,2               ; @numctlerrors
	.comm	_CTL_RESPONSE,8,3               ; @CTL_RESPONSE
	.comm	_CTL_ERROR,4,2                  ; @CTL_ERROR
	.comm	_res_opcode,4,2                 ; @res_opcode
	.comm	_CTL_OP_MASK,4,2                ; @CTL_OP_MASK
	.comm	_rpkt,24,3                      ; @rpkt
	.comm	_res_authenticate,8,3           ; @res_authenticate
	.comm	_sys_authenticate,8,3           ; @sys_authenticate
	.comm	_res_keyid,4,2                  ; @res_keyid
	.comm	_CTL_HEADER_LEN,8,3             ; @CTL_HEADER_LEN
	.comm	_rmt_addr,4,2                   ; @rmt_addr
	.comm	_lcl_inter,4,2                  ; @lcl_inter
	.no_dead_strip	_ctl_error
.subsections_via_symbols
