	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execute_cmp_ctx_log_cb_test
_execute_cmp_ctx_log_cb_test:           ## @execute_cmp_ctx_log_cb_test
	.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
	movq	(%rdi), %r12
	movq	_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_OSSL_TRACE
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_OSSL_CMP_log_open
	xorl	%eax, %eax
	callq	_OSSL_CMP_log_open
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_OSSL_CMP_CTX_set_log_cb
	movl	%eax, %edi
	callq	_TEST_true
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_OSSL_CMP_err
	leaq	L_.str.2(%rip), %rdi
	callq	_OSSL_CMP_warn
	leaq	L_.str.3(%rip), %rdi
	callq	_OSSL_CMP_debug
	movq	_OSSL_CMP_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_OSSL_CMP_CTX_set_log_verbosity
	movl	%eax, %edi
	callq	_TEST_true
	leaq	L_.str.4(%rip), %rdi
	callq	_OSSL_CMP_debug
	movq	_OSSL_CMP_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_OSSL_CMP_CTX_set_log_verbosity
	movl	%eax, %edi
	callq	_TEST_true
	movl	$1, %ebx
LBB0_2:
	movq	_test_log_cb@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_OSSL_CMP_CTX_set_log_cb
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_OPENSSL_LINE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	_test_log_line@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %r15
	movq	%r15, %rdx
	movl	$107, %ecx
	callq	_OSSL_CMP_log2
	movq	_test_log_cb_res@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	movl	%eax, %r13d
	movq	_OSSL_CMP_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_OSSL_CMP_CTX_set_log_verbosity
	movl	$-1, (%r14)
	movq	_OPENSSL_LINE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	_test_log_line@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	movl	$107, %ecx
	callq	_OSSL_CMP_log2
	movl	(%r14), %edi
	movl	$-1, %esi
	callq	_TEST_int_eq
	testl	%r13d, %r13d
	cmovel	%r13d, %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	movl	%ebx, %r14d
LBB0_4:
	xorl	%eax, %eax
	callq	_OSSL_CMP_log_close
	xorl	%eax, %eax
	callq	_OSSL_CMP_log_close
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALL,4,2                        ## @ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this general trace message is not shown by default\n"

L_.str.1:                               ## @.str.1
	.asciz	"this should be printed as CMP error message"

L_.str.2:                               ## @.str.2
	.asciz	"this should be printed as CMP warning message"

L_.str.3:                               ## @.str.3
	.asciz	"this should not be printed"

	.comm	_OSSL_CMP_LOG_DEBUG,4,2         ## @OSSL_CMP_LOG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"this should be printed as CMP debug message"

	.comm	_OSSL_CMP_LOG_INFO,4,2          ## @OSSL_CMP_LOG_INFO
	.comm	_test_log_cb,8,3                ## @test_log_cb
	.comm	_OPENSSL_LINE,8,3               ## @OPENSSL_LINE
	.comm	_test_log_line,8,3              ## @test_log_line
	.comm	_INFO,4,2                       ## @INFO
L_.str.5:                               ## @.str.5
	.asciz	"%s%c"

L_.str.6:                               ## @.str.6
	.asciz	"o"

	.comm	_test_log_cb_res,4,2            ## @test_log_cb_res
	.comm	_OSSL_CMP_LOG_ERR,4,2           ## @OSSL_CMP_LOG_ERR
	.no_dead_strip	_execute_cmp_ctx_log_cb_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execute_cmp_ctx_log_cb_test
_execute_cmp_ctx_log_cb_test:           ; @execute_cmp_ctx_log_cb_test
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_OSSL_TRACE
	bl	_OSSL_CMP_log_open
	bl	_OSSL_CMP_log_open
	mov	x0, x19
	mov	x1, #0
	bl	_OSSL_CMP_CTX_set_log_cb
	bl	_TEST_true
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_OSSL_CMP_err
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_OSSL_CMP_warn
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_OSSL_CMP_debug
Lloh11:
	adrp	x8, _OSSL_CMP_LOG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OSSL_CMP_LOG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_CMP_CTX_set_log_verbosity
	bl	_TEST_true
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_OSSL_CMP_debug
Lloh16:
	adrp	x8, _OSSL_CMP_LOG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OSSL_CMP_LOG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_CMP_CTX_set_log_verbosity
	bl	_TEST_true
	mov	w23, #1
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
Lloh19:
	adrp	x8, _test_log_cb@GOTPAGE
Lloh20:
	ldr	x8, [x8, _test_log_cb@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_OSSL_CMP_CTX_set_log_cb
	bl	_TEST_true
	cbz	w0, LBB0_5
; %bb.4:
Lloh22:
	adrp	x24, _OPENSSL_LINE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _OPENSSL_LINE@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x8, x8, #1
Lloh24:
	adrp	x25, _test_log_line@GOTPAGE
Lloh25:
	ldr	x25, [x25, _test_log_line@GOTPAGEOFF]
	str	x8, [x25]
Lloh26:
	adrp	x26, _INFO@GOTPAGE
Lloh27:
	ldr	x26, [x26, _INFO@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh28:
	adrp	x20, l_.str.5@PAGE
Lloh29:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh30:
	adrp	x21, l_.str.6@PAGE
Lloh31:
	add	x21, x21, l_.str.6@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	w3, #107
	bl	_OSSL_CMP_log2
Lloh32:
	adrp	x27, _test_log_cb_res@GOTPAGE
Lloh33:
	ldr	x27, [x27, _test_log_cb_res@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	w1, #1
	bl	_TEST_int_eq
	mov	x22, x0
Lloh34:
	adrp	x8, _OSSL_CMP_LOG_ERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OSSL_CMP_LOG_ERR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_CMP_CTX_set_log_verbosity
	mov	w8, #-1
	str	w8, [x27]
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x25]
	ldr	w0, [x26]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #107
	bl	_OSSL_CMP_log2
	ldr	w0, [x27]
	mov	w1, #-1
	bl	_TEST_int_eq
	cmp	w22, #0
	ccmp	w0, #0, #4, ne
	csel	w19, wzr, w23, eq
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	bl	_OSSL_CMP_log_close
	bl	_OSSL_CMP_log_close
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ALL,4,2                        ; @ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this general trace message is not shown by default\n"

l_.str.1:                               ; @.str.1
	.asciz	"this should be printed as CMP error message"

l_.str.2:                               ; @.str.2
	.asciz	"this should be printed as CMP warning message"

l_.str.3:                               ; @.str.3
	.asciz	"this should not be printed"

	.comm	_OSSL_CMP_LOG_DEBUG,4,2         ; @OSSL_CMP_LOG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"this should be printed as CMP debug message"

	.comm	_OSSL_CMP_LOG_INFO,4,2          ; @OSSL_CMP_LOG_INFO
	.comm	_test_log_cb,8,3                ; @test_log_cb
	.comm	_OPENSSL_LINE,8,3               ; @OPENSSL_LINE
	.comm	_test_log_line,8,3              ; @test_log_line
	.comm	_INFO,4,2                       ; @INFO
l_.str.5:                               ; @.str.5
	.asciz	"%s%c"

l_.str.6:                               ; @.str.6
	.asciz	"o"

	.comm	_test_log_cb_res,4,2            ; @test_log_cb_res
	.comm	_OSSL_CMP_LOG_ERR,4,2           ; @OSSL_CMP_LOG_ERR
	.no_dead_strip	_execute_cmp_ctx_log_cb_test
.subsections_via_symbols
