	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TS_RESP_create_response        ## -- Begin function TS_RESP_create_response
	.p2align	4, 0x90
_TS_RESP_create_response:               ## @TS_RESP_create_response
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_ts_RESP_CTX_init
	xorl	%eax, %eax
	callq	_TS_RESP_new
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_d2i_TS_REQ_bio
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_TS_STATUS_GRANTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_TS_RESP_CTX_set_status_info
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	callq	_ts_RESP_check_request
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	callq	_ts_RESP_get_policy
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ts_RESP_create_tst_info
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_ts_RESP_process_extensions
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_ts_RESP_sign
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_10
LBB0_1:
	movq	_TS_F_TS_RESP_CREATE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TSerr
	jmp	LBB0_10
LBB0_3:
	movq	_TS_STATUS_REJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_TS_RESP_CTX_set_status_info
	movq	_TS_INFO_BAD_DATA_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_TS_RESP_CTX_add_failure_info
LBB0_10:
	movq	_TS_F_TS_RESP_CREATE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TS_R_RESPONSE_SETUP_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TSerr
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.11:
	movq	_TS_STATUS_REJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_TS_RESP_CTX_set_status_info_cond
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	(%r15), %rdi
	callq	_TS_RESP_free
	movq	$0, (%r15)
LBB0_13:
	movq	(%r15), %rbx
	movq	$0, (%r15)
	movq	%r15, %rdi
	callq	_ts_RESP_CTX_cleanup
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_F_TS_RESP_CREATE_RESPONSE,4,2 ## @TS_F_TS_RESP_CREATE_RESPONSE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_TS_STATUS_REJECTION,4,2        ## @TS_STATUS_REJECTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad request format or system error."

	.comm	_TS_INFO_BAD_DATA_FORMAT,4,2    ## @TS_INFO_BAD_DATA_FORMAT
	.comm	_TS_STATUS_GRANTED,4,2          ## @TS_STATUS_GRANTED
	.comm	_TS_R_RESPONSE_SETUP_ERROR,4,2  ## @TS_R_RESPONSE_SETUP_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error during response generation."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TS_RESP_create_response        ; -- Begin function TS_RESP_create_response
	.p2align	2
_TS_RESP_create_response:               ; @TS_RESP_create_response
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_ts_RESP_CTX_init
	bl	_TS_RESP_new
	str	x0, [x19]
Lloh0:
	adrp	x21, _TS_F_TS_RESP_CREATE_RESPONSE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TS_F_TS_RESP_CREATE_RESPONSE@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_TS_REQ_bio
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, _TS_STATUS_GRANTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TS_STATUS_GRANTED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_TS_RESP_CTX_set_status_info
	cbz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_ts_RESP_check_request
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_ts_RESP_get_policy
	cbz	x0, LBB0_10
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	bl	_ts_RESP_create_tst_info
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_ts_RESP_process_extensions
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_ts_RESP_sign
	cbnz	w0, LBB0_13
	b	LBB0_10
LBB0_8:
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_TSerr
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _TS_STATUS_REJECTION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TS_STATUS_REJECTION@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_TS_RESP_CTX_set_status_info
Lloh13:
	adrp	x8, _TS_INFO_BAD_DATA_FORMAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TS_INFO_BAD_DATA_FORMAT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TS_RESP_CTX_add_failure_info
LBB0_10:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _TS_R_RESPONSE_SETUP_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TS_R_RESPONSE_SETUP_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_TSerr
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
Lloh19:
	adrp	x8, _TS_STATUS_REJECTION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TS_STATUS_REJECTION@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_TS_RESP_CTX_set_status_info_cond
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x19]
	bl	_TS_RESP_free
	str	xzr, [x19]
LBB0_13:
	ldr	x20, [x19]
	str	xzr, [x19]
	mov	x0, x19
	bl	_ts_RESP_CTX_cleanup
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_F_TS_RESP_CREATE_RESPONSE,4,2 ; @TS_F_TS_RESP_CREATE_RESPONSE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_TS_STATUS_REJECTION,4,2        ; @TS_STATUS_REJECTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad request format or system error."

	.comm	_TS_INFO_BAD_DATA_FORMAT,4,2    ; @TS_INFO_BAD_DATA_FORMAT
	.comm	_TS_STATUS_GRANTED,4,2          ; @TS_STATUS_GRANTED
	.comm	_TS_R_RESPONSE_SETUP_ERROR,4,2  ; @TS_R_RESPONSE_SETUP_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error during response generation."

.subsections_via_symbols
