	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function se_choose
_se_choose:                             ## @se_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_br_ssl_server_get_client_suites
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_br_ssl_server_get_client_hashes
	sarl	$8, %eax
	movl	%eax, %edi
	callq	_br_ssl_choose_hash
	movq	(%r12), %rcx
	movq	_BR_TLS12@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.1:
	movq	_br_sha1_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	12(%rbx), %ecx
	movl	%ecx, 20(%r14)
	movl	8(%rbx), %ecx
	movl	%ecx, 16(%r14)
	movq	-40(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.3:
	movq	_BR_KEYTYPE_SIGN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_BR_KEYTYPE_KEYX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_BR_KEYTYPE_EC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_BR_KEYTYPE_RSA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rdi,8), %rdx
	movl	8(%rdx), %esi
	shrl	$12, %esi
	cmpl	$130, %esi
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %esi
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %esi
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r11d, (%rbx)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r9d, 4(%rbx)
	jne	LBB0_12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r10d, (%rbx)
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r11d, (%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r8d, 4(%rbx)
	jne	LBB0_12
LBB0_9:
	movq	(%rdx), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_17
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_16:
	movq	(%rdx), %rcx
	movq	%rcx, 8(%r14)
	addl	$65280, %eax                    ## imm = 0xFF00
	movl	%eax, (%r14)
LBB0_17:
	movl	$1, %eax
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_TLS12,8,3                   ## @BR_TLS12
	.comm	_br_sha1_ID,4,2                 ## @br_sha1_ID
	.comm	_BR_KEYTYPE_KEYX,4,2            ## @BR_KEYTYPE_KEYX
	.comm	_BR_KEYTYPE_RSA,4,2             ## @BR_KEYTYPE_RSA
	.comm	_BR_KEYTYPE_EC,4,2              ## @BR_KEYTYPE_EC
	.comm	_BR_KEYTYPE_SIGN,4,2            ## @BR_KEYTYPE_SIGN
	.no_dead_strip	_se_choose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function se_choose
_se_choose:                             ; @se_choose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_br_ssl_server_get_client_suites
	mov	x21, x0
	mov	x0, x22
	bl	_br_ssl_server_get_client_hashes
	asr	w0, w0, #8
	bl	_br_ssl_choose_hash
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _BR_TLS12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BR_TLS12@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _br_sha1_ID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _br_sha1_ID@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, w0, lt
	ldr	d0, [x20, #8]
	str	d0, [x19, #16]
	ldr	x9, [sp, #8]
	cbz	x9, LBB0_12
; %bb.1:
Lloh6:
	adrp	x10, _BR_KEYTYPE_SIGN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BR_KEYTYPE_SIGN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _BR_KEYTYPE_KEYX@GOTPAGE
Lloh10:
	ldr	x11, [x11, _BR_KEYTYPE_KEYX@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _BR_KEYTYPE_EC@GOTPAGE
Lloh13:
	ldr	x12, [x12, _BR_KEYTYPE_EC@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
Lloh15:
	adrp	x13, _BR_KEYTYPE_RSA@GOTPAGE
Lloh16:
	ldr	x13, [x13, _BR_KEYTYPE_RSA@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x20]
	and	w15, w10, w15
	cmp	w15, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #8
	subs	x9, x9, #1
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x21]
	ldr	w15, [x14, #8]
	lsr	w15, w15, #12
	cmp	w15, #130
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w15, #129
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w15, #128
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x20]
	tst	w11, w15
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x20, #4]
	cmp	w15, w13
	b.ne	LBB0_3
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x20]
	tst	w11, w15
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x20, #4]
	cmp	w15, w12
	b.ne	LBB0_3
LBB0_11:
	ldr	x8, [x14]
	str	x8, [x19, #8]
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	ldr	x9, [x14]
	str	x9, [x19, #8]
	mov	w9, #65280
	add	w8, w8, w9
	str	w8, [x19]
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_TLS12,8,3                   ; @BR_TLS12
	.comm	_br_sha1_ID,4,2                 ; @br_sha1_ID
	.comm	_BR_KEYTYPE_KEYX,4,2            ; @BR_KEYTYPE_KEYX
	.comm	_BR_KEYTYPE_RSA,4,2             ; @BR_KEYTYPE_RSA
	.comm	_BR_KEYTYPE_EC,4,2              ; @BR_KEYTYPE_EC
	.comm	_BR_KEYTYPE_SIGN,4,2            ; @BR_KEYTYPE_SIGN
	.no_dead_strip	_se_choose
.subsections_via_symbols
