	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_choose
_sr_choose:                             ## @sr_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, %r15
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_br_ssl_server_get_client_suites
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	_BR_TLS12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movl	$1, %r8d
	movl	$65280, %eax                    ## imm = 0xFF00
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_br_ssl_server_get_client_hashes
	movl	%eax, %edi
	callq	_br_ssl_choose_hash
	xorl	%r8d, %r8d
	testl	%eax, %eax
	setne	%r8b
	addl	$65280, %eax                    ## imm = 0xFF00
LBB0_3:
	movl	8(%r15), %ecx
	movl	%ecx, 20(%r14)
	movl	4(%r15), %ecx
	movl	%ecx, 16(%r14)
	movq	-40(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.4:
	movq	_BR_KEYTYPE_SIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_BR_KEYTYPE_KEYX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rsi
	movl	8(%rsi), %edi
	shrl	$12, %edi
	cmpl	$129, %edi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %edi
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r10d, (%r15)
	je	LBB0_12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%r9d, (%r15)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.11:
	movq	(%rsi), %rcx
	movq	%rcx, 8(%r14)
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%rsi), %rax
	movq	%rax, 8(%r14)
	movl	$1, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_TLS12,8,3                   ## @BR_TLS12
	.comm	_BR_KEYTYPE_KEYX,4,2            ## @BR_KEYTYPE_KEYX
	.comm	_BR_KEYTYPE_SIGN,4,2            ## @BR_KEYTYPE_SIGN
	.no_dead_strip	_sr_choose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_choose
_sr_choose:                             ; @sr_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, x2
	mov	x22, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_br_ssl_server_get_client_suites
	mov	x21, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _BR_TLS12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BR_TLS12@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w23, #65280
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_br_ssl_server_get_client_hashes
	bl	_br_ssl_choose_hash
	cmp	w0, #0
	cset	w8, ne
	add	w23, w0, w23
LBB0_3:
	ldur	d0, [x20, #4]
	str	d0, [x19, #16]
	ldr	x9, [sp, #8]
	cbz	x9, LBB0_11
; %bb.4:
Lloh3:
	adrp	x10, _BR_KEYTYPE_SIGN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BR_KEYTYPE_SIGN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _BR_KEYTYPE_KEYX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BR_KEYTYPE_KEYX@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x20]
	and	w13, w10, w13
	cmp	w13, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #8
	subs	x9, x9, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x21]
	ldr	w13, [x12, #8]
	lsr	w13, w13, #12
	cmp	w13, #129
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w13, #128
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x20]
	tst	w11, w13
	b.eq	LBB0_6
; %bb.10:
	ldr	x8, [x12]
	str	x8, [x19, #8]
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
LBB0_13:
	ldr	x8, [x12]
	str	x8, [x19, #8]
	str	w23, [x19]
	mov	w0, #1
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_TLS12,8,3                   ; @BR_TLS12
	.comm	_BR_KEYTYPE_KEYX,4,2            ; @BR_KEYTYPE_KEYX
	.comm	_BR_KEYTYPE_SIGN,4,2            ; @BR_KEYTYPE_SIGN
	.no_dead_strip	_sr_choose
.subsections_via_symbols
