	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQsetResultAttrs               ## -- Begin function PQsetResultAttrs
	.p2align	4, 0x90
_PQsetResultAttrs:                      ## @PQsetResultAttrs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	jg	LBB0_16
## %bb.2:
	movl	%esi, %r12d
	testl	%esi, %esi
	jle	LBB0_15
## %bb.3:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.4:
	movl	%r12d, %ebx
	shll	$4, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_PQresultAlloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movl	%r12d, (%r13)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	$1, 4(%r13)
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.6:
	movq	8(%r13), %rcx
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_pqResultStrdup
	movq	8(%r13), %rcx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rax
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, 8(%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rcx,%rbx)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 4(%r13)
	jmp	LBB0_14
LBB0_15:
	movl	$1, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQsetResultAttrs               ; -- Begin function PQsetResultAttrs
	.p2align	2
_PQsetResultAttrs:                      ; @PQsetResultAttrs
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	mov	x21, x1
	mov	w0, #1
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.5:
	mov	x20, x2
	cbz	x2, LBB0_3
; %bb.6:
	lsl	w22, w21, #4
	mov	x0, x19
	mov	x1, x22
	bl	_PQresultAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.7:
	str	w21, [x19]
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	mov	w0, #1
	str	w0, [x19, #4]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.8:
	mov	x20, #0
	mov	x21, #0
	ldr	x8, [x19, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x19]
	add	x20, x20, #16
	mov	w0, #1
	cmp	x21, x9
	b.ge	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x20
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_pqResultStrdup
	ldr	x8, [x19, #8]
	add	x9, x8, x20
	str	x0, [x9, #8]
	cbnz	x0, LBB0_13
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19, #16]
	str	x0, [x9, #8]
	cbz	x0, LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x8, x20]
	cbnz	x9, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	str	wzr, [x19, #4]
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
