	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_db_send
_eap_sim_db_send:                       ## @eap_sim_db_send
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	(%rdi), %edi
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	callq	_send
	movl	$0, %ebx
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_2:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.3:
	movq	_EDESTADDRREQ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.5:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
LBB0_6:
	movq	%r13, %rdi
	callq	_eap_sim_db_close_socket
	movq	%r13, %rdi
	callq	_eap_sim_db_open_socket
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_9
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_send
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send[EAP-SIM DB UNIX]: %s"

	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_EDESTADDRREQ,4,2               ## @EDESTADDRREQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM DB: Reconnected to the external server"

	.no_dead_strip	_eap_sim_db_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sim_db_send
_eap_sim_db_send:                       ; @eap_sim_db_send
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	mov	w3, #0
	bl	_send
	mov	w22, #0
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_wpa_printf
LBB0_2:
Lloh8:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh10:
	adrp	x9, _EDESTADDRREQ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EDESTADDRREQ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _EINVAL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh16:
	adrp	x11, _ECONNREFUSED@GOTPAGE
Lloh17:
	ldr	x11, [x11, _ECONNREFUSED@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	ldr	w11, [x11]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	ccmp	w22, w10, #4, ne
	ccmp	w22, w11, #4, ne
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x21
	bl	_eap_sim_db_close_socket
	mov	x0, x21
	bl	_eap_sim_db_open_socket
	tbnz	x0, #63, LBB0_6
; %bb.4:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_send
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_8
; %bb.5:
Lloh25:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send[EAP-SIM DB UNIX]: %s"

	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_EDESTADDRREQ,4,2               ; @EDESTADDRREQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM DB: Reconnected to the external server"

	.no_dead_strip	_eap_sim_db_send
.subsections_via_symbols
