	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_query
_create_query:                          ## @create_query
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_EVP_get_digestbyname
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_17
LBB0_2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TS_REQ_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_TS_REQ_set_version
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	xorl	%eax, %eax
	callq	_TS_MSG_IMPRINT_new
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_X509_ALGOR_new
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_EVP_MD_type
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	%rax, 8(%r13)
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	xorl	%eax, %eax
	callq	_ASN1_TYPE_new
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:
	movq	_V_ASN1_NULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_TS_MSG_IMPRINT_set_algo
	testl	%eax, %eax
	je	LBB0_23
## %bb.9:
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_create_digest
	testl	%eax, %eax
	je	LBB0_23
## %bb.10:
	movq	-64(%rbp), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_TS_MSG_IMPRINT_set_msg
	testl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_24
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_TS_REQ_set_msg_imprint
	testl	%eax, %eax
	je	LBB0_24
## %bb.12:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.13:
	callq	_txt2obj
	testq	%rax, %rax
	je	LBB0_24
## %bb.14:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_TS_REQ_set_policy_id
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_15
LBB0_16:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rdi
	callq	_TS_REQ_free
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_printf
	movl	(%rbx), %edi
	callq	_ERR_print_errors
	xorl	%ebx, %ebx
LBB0_20:
	movq	%r14, %rdi
	callq	_TS_MSG_IMPRINT_free
	movq	%r13, %rdi
	callq	_X509_ALGOR_free
	movq	-64(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_ASN1_OBJECT_free
	movq	%r12, %rdi
	callq	_ASN1_INTEGER_free
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_22:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_23:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_24:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_25:
	xorl	%r15d, %r15d
LBB0_26:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.27:
	xorl	%r12d, %r12d
LBB0_28:
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_TS_REQ_set_cert_req
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_19
LBB0_29:
	movq	_NONCE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_create_nonce
	testq	%rax, %rax
	je	LBB0_15
## %bb.30:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_TS_REQ_set_nonce
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_19
LBB0_15:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sha1"

	.comm	_V_ASN1_NULL,4,2                ## @V_ASN1_NULL
	.comm	_NONCE_LENGTH,4,2               ## @NONCE_LENGTH
	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"could not create query\n"

	.no_dead_strip	_create_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_query
_create_query:                          ; @create_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x5
	mov	x23, x4
	mov	x22, x3
	mov	x27, x2
	mov	x25, x1
	mov	x26, x0
	str	xzr, [sp, #8]
	cbnz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_EVP_get_digestbyname
	mov	x27, x0
	cbz	x0, LBB0_20
LBB0_2:
	bl	_TS_REQ_new
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_TS_REQ_set_version
	cbz	w0, LBB0_18
; %bb.4:
	bl	_TS_MSG_IMPRINT_new
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.5:
	bl	_X509_ALGOR_new
	mov	x21, x0
	cbz	x0, LBB0_19
; %bb.6:
	mov	x0, x27
	bl	_EVP_MD_type
	bl	_OBJ_nid2obj
	str	x0, [x21, #8]
	cbz	x0, LBB0_19
; %bb.7:
	bl	_ASN1_TYPE_new
	str	x0, [x21]
	cbz	x0, LBB0_19
; %bb.8:
Lloh2:
	adrp	x8, _V_ASN1_NULL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V_ASN1_NULL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x0, x20
	mov	x1, x21
	bl	_TS_MSG_IMPRINT_set_algo
	cbz	w0, LBB0_19
; %bb.9:
	add	x3, sp, #8
	mov	x0, x26
	mov	x1, x25
	mov	x2, x27
	bl	_create_digest
	cbz	w0, LBB0_19
; %bb.10:
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_TS_MSG_IMPRINT_set_msg
	cbz	w0, LBB0_19
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_TS_REQ_set_msg_imprint
	cbz	w0, LBB0_19
; %bb.12:
	cbz	x22, LBB0_15
; %bb.13:
	mov	x0, x22
	bl	_txt2obj
	mov	x22, x0
	cbz	x0, LBB0_24
; %bb.14:
	mov	x0, x19
	mov	x1, x22
	bl	_TS_REQ_set_policy_id
	cbz	w0, LBB0_24
LBB0_15:
	cbz	w23, LBB0_25
; %bb.16:
	mov	x23, #0
LBB0_17:
	mov	x0, x19
	mov	x1, x24
	bl	_TS_REQ_set_cert_req
	cbnz	w0, LBB0_23
	b	LBB0_22
LBB0_18:
	mov	x23, #0
	mov	x22, #0
	mov	x21, #0
	mov	x20, #0
	b	LBB0_22
LBB0_19:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_22
LBB0_20:
	mov	x23, #0
	mov	x22, #0
	mov	x21, #0
	mov	x20, #0
	mov	x19, #0
	b	LBB0_22
LBB0_21:
	mov	x23, #0
	mov	x22, #0
	mov	x21, #0
LBB0_22:
	mov	x0, x19
	bl	_TS_REQ_free
Lloh5:
	adrp	x19, _bio_err@GOTPAGE
Lloh6:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	mov	x19, #0
LBB0_23:
	mov	x0, x20
	bl	_TS_MSG_IMPRINT_free
	mov	x0, x21
	bl	_X509_ALGOR_free
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x22
	bl	_ASN1_OBJECT_free
	mov	x0, x23
	bl	_ASN1_INTEGER_free
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
	mov	x23, #0
	b	LBB0_22
LBB0_25:
Lloh9:
	adrp	x8, _NONCE_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NONCE_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_create_nonce
	mov	x23, x0
	cbz	x0, LBB0_22
; %bb.26:
	mov	x0, x19
	mov	x1, x23
	bl	_TS_REQ_set_nonce
	cbnz	w0, LBB0_17
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sha1"

	.comm	_V_ASN1_NULL,4,2                ; @V_ASN1_NULL
	.comm	_NONCE_LENGTH,4,2               ; @NONCE_LENGTH
	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"could not create query\n"

	.no_dead_strip	_create_query
.subsections_via_symbols
