	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choose_dh                      ## -- Begin function choose_dh
	.p2align	4, 0x90
_choose_dh:                             ## @choose_dh
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	movq	$0, -56(%rbp)
	movq	$0, -96(%rbp)
	movq	__PATH_DH_MODULI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.5:
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %rbx
	leaq	-56(%rbp), %r13
	leaq	-96(%rbp), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	incl	%r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getline
	incl	%r12d
	cmpl	$-1, %eax
	je	LBB0_3
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	callq	_parse_prime
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %edi
	callq	_BN_clear_free
	movl	-76(%rbp), %edi
	callq	_BN_clear_free
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	-84(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%edx, %eax
	jl	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	-84(%rbp), %edx                 ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%edx, %eax
	jle	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%esi, %esi
	movl	%eax, %edx
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	cmpl	%edx, %eax
	sete	%cl
	addl	%ecx, %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%r12d
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_logit
	movl	%r12d, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dh_new_group_fallback          ## TAILCALL
LBB0_2:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	$0, -56(%rbp)
	movq	$0, -96(%rbp)
	movq	%r15, %rdi
	callq	_rewind
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	je	LBB0_4
## %bb.18:
	callq	_arc4random_uniform
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r12
	leaq	-96(%rbp), %r13
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_parse_prime
	testl	%eax, %eax
	je	LBB0_19
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	leal	1(%rbx), %eax
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%eax, %ebx
	je	LBB0_21
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	-72(%rbp), %edi
	callq	_BN_clear_free
	movl	-76(%rbp), %edi
	callq	_BN_clear_free
	jmp	LBB0_19
LBB0_20:
	movl	%ebx, %eax
LBB0_21:
	movq	-56(%rbp), %rdi
	movl	%eax, %ebx
	callq	_free
	movq	$0, -56(%rbp)
	movq	%r15, %rdi
	callq	_fclose
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	incl	%eax
	cmpl	%eax, %ebx
	jne	LBB0_22
## %bb.30:
	movl	-76(%rbp), %esi
	movl	-72(%rbp), %edi
	callq	_dh_new_group
	jmp	LBB0_31
LBB0_4:
	movq	%r15, %rdi
	callq	_fclose
	movq	__PATH_DH_MODULI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_logit
	jmp	LBB0_23
LBB0_22:
	movq	__PATH_DH_MODULI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_logit
LBB0_23:
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_dh_new_group_fallback
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_DH_MODULI,4,2            ## @_PATH_DH_MODULI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"WARNING: could not open %s (%s), using fixed modulus"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"WARNING: no suitable primes in %s"

L_.str.3:                               ## @.str.3
	.asciz	"WARNING: line %d disappeared in %s, giving up"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choose_dh                      ; -- Begin function choose_dh
	.p2align	2
_choose_dh:                             ; @choose_dh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #32]
Lloh0:
	adrp	x25, __PATH_DH_MODULI@GOTPAGE
Lloh1:
	ldr	x25, [x25, __PATH_DH_MODULI@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x20
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.2:
	mov	w24, #0
	mov	w23, #0
	mov	w26, #0
	add	w24, w24, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x20
	bl	_getline
	add	w24, w24, #1
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #40]
	add	x2, sp, #16
	mov	x0, x24
	bl	_parse_prime
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #24]
	bl	_BN_clear_free
	ldr	w0, [sp, #20]
	bl	_BN_clear_free
	ldr	w8, [sp, #16]
	cmp	w8, w19
	ccmp	w8, w21, #8, le
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w22
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w26
	b.lt	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, w22
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w26
	b.le	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	mov	x26, x8
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w26
	cinc	w23, w23, eq
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x20
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	b	LBB0_4
LBB0_13:
	ldr	w20, [x25]
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_logit
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_dh_new_group_fallback
LBB0_14:
	mov	w26, #0
	mov	w23, #0
LBB0_15:
	ldr	x0, [sp, #40]
	bl	_free
	stp	xzr, xzr, [sp, #32]
	mov	x0, x20
	bl	_rewind
	cbz	w23, LBB0_25
; %bb.16:
	mov	x0, x23
	bl	_arc4random_uniform
	mov	x22, x0
	mov	w23, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x20
	bl	_getline
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x1, [sp, #40]
	add	x2, sp, #16
	mov	x0, x23
	bl	_parse_prime
	cbz	w0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [sp, #16]
	cmp	w8, w19
	ccmp	w8, w21, #8, le
	ccmp	w8, w26, #0, ge
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w24, w23, #1
	cmp	w23, w22
	mov	x23, x24
	b.eq	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [sp, #24]
	bl	_BN_clear_free
	ldr	w0, [sp, #20]
	bl	_BN_clear_free
	b	LBB0_17
LBB0_22:
	mov	x24, x23
LBB0_23:
	ldr	x0, [sp, #40]
	bl	_free
	str	xzr, [sp, #40]
	mov	x0, x20
	bl	_fclose
	add	w8, w22, #1
	cmp	w24, w8
	b.ne	LBB0_26
; %bb.24:
	ldp	w1, w0, [sp, #20]
	bl	_dh_new_group
	b	LBB0_28
LBB0_25:
	mov	x0, x20
	bl	_fclose
	ldr	w1, [x25]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_27
LBB0_26:
	ldr	w8, [x25]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
LBB0_27:
	bl	_logit
	mov	x0, x19
	bl	_dh_new_group_fallback
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_DH_MODULI,4,2            ; @_PATH_DH_MODULI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"WARNING: could not open %s (%s), using fixed modulus"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"WARNING: no suitable primes in %s"

l_.str.3:                               ; @.str.3
	.asciz	"WARNING: line %d disappeared in %s, giving up"

.subsections_via_symbols
