	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc_choose
_cc_choose:                             ## @cc_choose
	.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	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_br_ssl_client_get_server_curve
	movl	%eax, %r12d
	cmpq	$0, 8(%r15)
	je	LBB0_12
## %bb.1:
	movq	%rbx, %rdi
	callq	_br_ssl_client_get_server_hashes
	movl	%eax, %ebx
	testb	%r13b, %r13b
	je	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_print_hashes
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_3:
	testl	$65280, %r13d                   ## imm = 0xFF00
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r13d, %edi
	sarl	$8, %edi
	shrl	$8, %ebx
	movl	%ebx, %esi
	callq	_print_hashes
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	testl	$65536, %r13d                   ## imm = 0x10000
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	testl	$131072, %r13d                  ## imm = 0x20000
	je	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movl	%r12d, %edi
	callq	_ec_curve_name
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movq	32(%r15), %rax
	movl	(%rax), %ecx
	cmpl	$129, %ecx
	je	LBB0_20
## %bb.13:
	cmpl	$128, %ecx
	jne	LBB0_30
## %bb.14:
	movl	%r13d, %edi
	callq	_choose_hash
	movq	%rax, %rbx
	movl	%ebx, (%r14)
	testl	%ebx, %ebx
	js	LBB0_30
## %bb.15:
	cmpq	$0, 8(%r15)
	je	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_hash_function_name
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:
	movq	_BR_AUTH_RSA@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_20:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.21:
	cmpl	4(%rax), %r12d
	jne	LBB0_26
## %bb.22:
	xorl	%eax, %eax
	cmpl	$128, %ecx
	setne	%al
	shll	$16, %eax
	addl	$65536, %eax                    ## imm = 0x10000
	testl	%r13d, %eax
	je	LBB0_26
## %bb.23:
	cmpq	$0, 8(%r15)
	je	LBB0_25
## %bb.24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_25:
	movq	_BR_AUTH_ECDH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$-1, (%r14)
	jmp	LBB0_19
LBB0_26:
	sarl	$8, %r13d
	movl	%r13d, %edi
	callq	_choose_hash
	movq	%rax, %rbx
	movl	%ebx, (%r14)
	testl	%ebx, %ebx
	js	LBB0_30
## %bb.27:
	cmpq	$0, 8(%r15)
	je	LBB0_29
## %bb.28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_hash_function_name
	leaq	L_.str.9(%rip), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_29:
	movq	_BR_AUTH_ECDSA@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_19:
	movq	24(%r15), %rax
	movq	%rax, 16(%r14)
	movq	16(%r15), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_33
LBB0_30:
	cmpq	$0, 8(%r15)
	je	LBB0_32
## %bb.31:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_32:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"supported: RSA signatures:"

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

L_.str.2:                               ## @.str.2
	.asciz	"supported: ECDSA signatures:"

L_.str.3:                               ## @.str.3
	.asciz	"supported: fixed ECDH (cert signed with RSA)\n"

L_.str.4:                               ## @.str.4
	.asciz	"supported: fixed ECDH (cert signed with ECDSA)\n"

L_.str.5:                               ## @.str.5
	.asciz	"server key curve: %s (%d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"server key is not EC\n"

L_.str.7:                               ## @.str.7
	.asciz	"using RSA, hash = %d (%s)\n"

	.comm	_BR_AUTH_RSA,4,2                ## @BR_AUTH_RSA
L_.str.8:                               ## @.str.8
	.asciz	"using static ECDH\n"

	.comm	_BR_AUTH_ECDH,4,2               ## @BR_AUTH_ECDH
L_.str.9:                               ## @.str.9
	.asciz	"using ECDSA, hash = %d (%s)\n"

	.comm	_BR_AUTH_ECDSA,4,2              ## @BR_AUTH_ECDSA
L_.str.10:                              ## @.str.10
	.asciz	"no matching client certificate\n"

	.no_dead_strip	_cc_choose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc_choose
_cc_choose:                             ; @cc_choose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x1
	bl	_br_ssl_client_get_server_curve
	mov	x22, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x0, x23
	bl	_br_ssl_client_get_server_hashes
	mov	x23, x0
Lloh0:
	adrp	x24, _stderr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	tst	w21, #0xff
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	mov	x1, x23
	bl	_print_hashes
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_3:
	tst	w21, #0xff00
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x24]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	asr	w0, w21, #8
	lsr	w1, w23, #8
	bl	_print_hashes
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_5:
	tbnz	w21, #16, LBB0_9
; %bb.6:
	tbnz	w21, #17, LBB0_10
LBB0_7:
	ldr	w23, [x24]
	cbz	w22, LBB0_11
LBB0_8:
	mov	x0, x22
	bl	_ec_curve_name
	stp	x0, x22, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_9:
	ldr	w0, [x24]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	tbz	w21, #17, LBB0_7
LBB0_10:
	ldr	w0, [x24]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w23, [x24]
	cbnz	w22, LBB0_8
LBB0_11:
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	mov	x0, x23
	bl	_fprintf
LBB0_13:
	ldr	x9, [x20, #32]
	ldr	w8, [x9]
	cmp	w8, #129
	b.eq	LBB0_19
; %bb.14:
	cmp	w8, #128
	b.ne	LBB0_31
; %bb.15:
	mov	x0, x21
	bl	_choose_hash
	mov	x21, x0
	str	w21, [x19]
	tbnz	w21, #31, LBB0_31
; %bb.16:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_hash_function_name
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x0, [sp]
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_18:
Lloh23:
	adrp	x8, _BR_AUTH_RSA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BR_AUTH_RSA@GOTPAGEOFF]
	b	LBB0_29
LBB0_19:
	ldr	w8, [x20]
	cbz	w8, LBB0_25
; %bb.20:
	ldr	w9, [x9, #4]
	cmp	w22, w9
	b.ne	LBB0_25
; %bb.21:
	mov	w9, #131072
	mov	w10, #65536
	cmp	w8, #128
	csel	w8, w10, w9, eq
	tst	w8, w21
	b.eq	LBB0_25
; %bb.22:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_24
; %bb.23:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
LBB0_24:
Lloh30:
	adrp	x8, _BR_AUTH_ECDH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BR_AUTH_ECDH@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_30
LBB0_25:
	asr	w0, w21, #8
	bl	_choose_hash
	mov	x21, x0
	str	w21, [x19]
	tbnz	w21, #31, LBB0_31
; %bb.26:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_28
; %bb.27:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_hash_function_name
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x0, [sp]
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_28:
Lloh38:
	adrp	x8, _BR_AUTH_ECDSA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BR_AUTH_ECDSA@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_30:
	ldp	x9, x8, [x20, #16]
	stp	x9, x8, [x19, #8]
	b	LBB0_34
LBB0_31:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_33
; %bb.32:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
LBB0_33:
	stp	xzr, xzr, [x19, #8]
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"supported: RSA signatures:"

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

l_.str.2:                               ; @.str.2
	.asciz	"supported: ECDSA signatures:"

l_.str.3:                               ; @.str.3
	.asciz	"supported: fixed ECDH (cert signed with RSA)\n"

l_.str.4:                               ; @.str.4
	.asciz	"supported: fixed ECDH (cert signed with ECDSA)\n"

l_.str.5:                               ; @.str.5
	.asciz	"server key curve: %s (%d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"server key is not EC\n"

l_.str.7:                               ; @.str.7
	.asciz	"using RSA, hash = %d (%s)\n"

	.comm	_BR_AUTH_RSA,4,2                ; @BR_AUTH_RSA
l_.str.8:                               ; @.str.8
	.asciz	"using static ECDH\n"

	.comm	_BR_AUTH_ECDH,4,2               ; @BR_AUTH_ECDH
l_.str.9:                               ; @.str.9
	.asciz	"using ECDSA, hash = %d (%s)\n"

	.comm	_BR_AUTH_ECDSA,4,2              ; @BR_AUTH_ECDSA
l_.str.10:                              ; @.str.10
	.asciz	"no matching client certificate\n"

	.no_dead_strip	_cc_choose
.subsections_via_symbols
