	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_global_dh
_tls_global_dh:                         ## @tls_global_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	(%rdi), %r15
	movl	$-1, %r14d
	testq	%r15, %r15
	je	LBB0_15
## %bb.2:
	movq	%rsi, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_BIO_new_file
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_DHparams
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_BIO_free
	testq	%r12, %r12
	je	LBB0_5
LBB0_11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SSL_CTX_set_tmp_dh
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	callq	_DH_free
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_BIO_new_file
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_DSAparams
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_BIO_free
	movl	(%r12), %r12d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_DSA_dup_DH
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_DSA_free
	testq	%r12, %r12
	jne	LBB0_11
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_12:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_DH_free
	jmp	LBB0_15
LBB0_7:
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"TLS: Failed to open DH file '%s': %s"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"TLS: Failed to parse DH file '%s': %s - trying to parse as DSA params"

L_.str.3:                               ## @.str.3
	.asciz	"TLS: Failed to parse DSA file '%s': %s"

L_.str.4:                               ## @.str.4
	.asciz	"TLS: DH file in DSA param format"

L_.str.5:                               ## @.str.5
	.asciz	"TLS: Failed to convert DSA params into DH params"

L_.str.6:                               ## @.str.6
	.asciz	"TLS: Failed to read/parse DH/DSA file '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"TLS: Failed to set DH params from '%s': %s"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.no_dead_strip	_tls_global_dh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_global_dh
_tls_global_dh:                         ; @tls_global_dh
	.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
	cbz	x1, LBB0_6
; %bb.1:
	ldr	x20, [x0]
	cbz	x20, LBB0_17
; %bb.2:
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_BIO_new_file
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_DHparams
	mov	x21, x0
	mov	x0, x22
	bl	_BIO_free
	cbz	x21, LBB0_8
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_SSL_CTX_set_tmp_dh
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.5:
	mov	x0, x21
	bl	_DH_free
LBB0_6:
	mov	w0, #0
	b	LBB0_18
LBB0_7:
Lloh2:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	b	LBB0_16
LBB0_8:
Lloh7:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w21, [x23]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_BIO_new_file
	cbz	x0, LBB0_15
; %bb.9:
	mov	x21, x0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_DSAparams
	mov	x22, x0
	mov	x0, x21
	bl	_BIO_free
	ldr	w21, [x23]
	cbz	x22, LBB0_13
; %bb.10:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
	mov	x0, x22
	bl	_DSA_dup_DH
	mov	x21, x0
	mov	x0, x22
	bl	_DSA_free
	cbnz	x21, LBB0_4
; %bb.11:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	mov	x0, x21
	bl	_DH_free
	b	LBB0_17
LBB0_13:
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
LBB0_14:
	bl	_wpa_printf
LBB0_15:
Lloh27:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	bl	_wpa_printf
LBB0_17:
	mov	w0, #-1
LBB0_18:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"TLS: Failed to open DH file '%s': %s"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"TLS: Failed to parse DH file '%s': %s - trying to parse as DSA params"

l_.str.3:                               ; @.str.3
	.asciz	"TLS: Failed to parse DSA file '%s': %s"

l_.str.4:                               ; @.str.4
	.asciz	"TLS: DH file in DSA param format"

l_.str.5:                               ; @.str.5
	.asciz	"TLS: Failed to convert DSA params into DH params"

l_.str.6:                               ; @.str.6
	.asciz	"TLS: Failed to read/parse DH/DSA file '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"TLS: Failed to set DH params from '%s': %s"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.no_dead_strip	_tls_global_dh
.subsections_via_symbols
