	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internal_cancel
_internal_cancel:                       ## @internal_cancel
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SOCK_ERRNO@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_PG_STRERROR_R_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, %r13
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_1
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_7
LBB0_1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rbx
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	movl	$32, %edi
	callq	_pg_hton32
	movl	%eax, -120(%rbp)
	movq	_CANCEL_REQUEST_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pg_hton32
	movq	%rax, -96(%rbp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_pg_hton32
	movq	%rax, -104(%rbp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_pg_hton32
	movq	%rax, -112(%rbp)
	leaq	-120(%rbp), %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$32, %eax
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	je	LBB0_13
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_7:
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%r12, %rdi
	callq	_strlen
	subl	%eax, %ebx
	cmpl	$2, %ebx
	jl	LBB0_9
## %bb.8:
	addl	$-2, %ebx
	movl	(%r15), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_SOCK_STRERROR
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_strncat
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcat
LBB0_9:
	xorl	%ebx, %ebx
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_10
LBB0_17:
	movq	%r13, %rdi
	callq	_closesocket
LBB0_10:
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_SOCK_ERRNO_SET
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.20:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	-120(%rbp), %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	je	LBB0_15
	jmp	LBB0_17
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_ERRNO,4,2                 ## @SOCK_ERRNO
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ## @PG_STRERROR_R_BUFLEN
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PQcancel() -- socket() failed: "

	.comm	_EINTR,4,2                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"PQcancel() -- connect() failed: "

	.comm	_CANCEL_REQUEST_CODE,4,2        ## @CANCEL_REQUEST_CODE
L_.str.2:                               ## @.str.2
	.asciz	"PQcancel() -- send() failed: "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_internal_cancel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internal_cancel
_internal_cancel:                       ; @internal_cancel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x22, x4
	mov	x21, x3
	stur	w2, [x29, #-124]                ; 4-byte Folded Spill
	mov	x26, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x19, _SOCK_ERRNO@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SOCK_ERRNO@GOTPAGEOFF]
	ldr	w25, [x19]
Lloh5:
	adrp	x8, _PG_STRERROR_R_BUFLEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PG_STRERROR_R_BUFLEN@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	mov	x9, x23
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x28, x0
	ldr	w0, [x28, #4]!
Lloh10:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
Lloh13:
	adrp	x8, _PGINVALID_SOCKET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_strlcpy
	b	LBB0_11
LBB0_2:
	stur	w25, [x29, #-128]               ; 4-byte Folded Spill
Lloh18:
	adrp	x25, _EINTR@GOTPAGE
Lloh19:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x28
	bl	_connect
	tbz	x0, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.5:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	w0, #32
	bl	_pg_hton32
	stur	w0, [x29, #-120]
Lloh22:
	adrp	x8, _CANCEL_REQUEST_CODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CANCEL_REQUEST_CODE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_pg_hton32
	stur	x0, [x29, #-96]
	mov	x0, x26
	bl	_pg_hton32
	stur	x0, [x29, #-104]
	ldur	w0, [x29, #-124]                ; 4-byte Folded Reload
	bl	_pg_hton32
	stur	x0, [x29, #-112]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #120
	mov	x0, x20
	mov	w2, #32
	mov	w3, #0
	bl	_send
	cmp	w0, #32
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.9:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x21
	mov	x2, x22
	bl	_strlcpy
	ldur	w25, [x29, #-128]               ; 4-byte Folded Reload
LBB0_11:
	mov	x0, x21
	bl	_strlen
	sub	w8, w22, w0
	subs	w22, w8, #2
	b.lt	LBB0_13
; %bb.12:
	ldr	w0, [x19]
	mov	x1, x24
	mov	x2, x23
	bl	_SOCK_STRERROR
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_strncat
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcat
LBB0_13:
	mov	w22, #0
	mov	w21, #0
Lloh29:
	adrp	x8, _PGINVALID_SOCKET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_20
	b	LBB0_19
LBB0_14:
	mov	w22, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #120
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_recv
	tbz	x0, #63, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.17:
	mov	w22, #1
LBB0_18:
	ldur	w25, [x29, #-128]               ; 4-byte Folded Reload
LBB0_19:
	mov	x0, x20
	bl	_closesocket
	mov	x21, x22
LBB0_20:
	mov	x0, x25
	bl	_SOCK_ERRNO_SET
	ldur	x8, [x29, #-88]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_ERRNO,4,2                 ; @SOCK_ERRNO
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ; @PG_STRERROR_R_BUFLEN
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PQcancel() -- socket() failed: "

	.comm	_EINTR,4,2                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"PQcancel() -- connect() failed: "

	.comm	_CANCEL_REQUEST_CODE,4,2        ; @CANCEL_REQUEST_CODE
l_.str.2:                               ; @.str.2
	.asciz	"PQcancel() -- send() failed: "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_internal_cancel
.subsections_via_symbols
