	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_post                      ## -- Begin function http_post
	.p2align	4, 0x90
_http_post:                             ## @http_post
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -272(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -280(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -264(%rbp)
	movq	$0, (%rdi)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	40(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	16(%rbp), %rcx
	movq	24(%rbp), %r8
	movq	32(%rbp), %r9
	callq	_setup_curl_post
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	leaq	-256(%rbp), %r12
	movq	%r12, %rdi
	movl	$200, %esi
	movq	%r14, %rcx
	callq	_snprintf
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_curl_slist_append
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	-272(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_curl_slist_append
LBB0_6:
	movq	_CURLOPT_HTTPHEADER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_curl_easy_setopt
	movq	_CURLOPT_POSTFIELDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	-280(%rbp), %rdx                ## 8-byte Reload
	callq	_curl_easy_setopt
	movq	%r15, %rdi
	callq	_free_curl_buf
	movq	%rbx, %rdi
	callq	_curl_easy_perform
	movq	_CURLE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.11:
	movq	_CURLINFO_RESPONSE_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-264(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_curl_easy_getinfo
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-264(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-264(%rbp), %rdx
	cmpq	$200, %rdx
	jne	LBB0_12
## %bb.13:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.15:
	movq	48(%rbp), %rcx
	leaq	8(%r15), %rax
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movq	16(%r15), %rdx
	movq	%rdx, (%rcx)
LBB0_17:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_18
LBB0_7:
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	callq	_curl_easy_strerror
	movq	%rax, %rdx
	movq	%rax, (%r15)
LBB0_9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r15)
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_10:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_free_curl_buf
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r12, %rax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"curl: HTTP POST to %s"

L_.str.1:                               ## @.str.1
	.asciz	"Content-Type: %s"

	.comm	_CURLOPT_HTTPHEADER,4,2         ## @CURLOPT_HTTPHEADER
	.comm	_CURLOPT_POSTFIELDS,4,2         ## @CURLOPT_POSTFIELDS
	.comm	_CURLE_OK,8,3                   ## @CURLE_OK
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"curl_easy_perform() failed: %s"

	.comm	_CURLINFO_RESPONSE_CODE,4,2     ## @CURLINFO_RESPONSE_CODE
L_.str.3:                               ## @.str.3
	.asciz	"curl: Server response code %ld"

L_.str.4:                               ## @.str.4
	.asciz	"HTTP POST failed"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.5:                               ## @.str.5
	.asciz	"HTTP POST failed - code %ld"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.6:                               ## @.str.6
	.asciz	"Server response:\n%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_post                      ; -- Begin function http_post
	.p2align	2
_http_post:                             ; @http_post
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x24, x6
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x26, x1
	mov	x19, x0
	ldp	x27, x28, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	xzr, [sp, #16]
	str	xzr, [x0]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x1, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x21
	mov	x5, x27
	mov	x6, x28
	bl	_setup_curl_post
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
	cbz	x23, LBB0_13
; %bb.2:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #200
	mov	x3, x23
	bl	_snprintf
	add	x1, sp, #24
	mov	x0, #0
	bl	_curl_slist_append
	mov	x2, x0
	cbz	x22, LBB0_4
LBB0_3:
	mov	x0, x2
	mov	x1, x22
	bl	_curl_slist_append
	mov	x2, x0
LBB0_4:
Lloh10:
	adrp	x8, _CURLOPT_HTTPHEADER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CURLOPT_HTTPHEADER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_curl_easy_setopt
Lloh13:
	adrp	x8, _CURLOPT_POSTFIELDS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CURLOPT_POSTFIELDS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_curl_easy_setopt
	mov	x0, x19
	bl	_free_curl_buf
	mov	x0, x21
	bl	_curl_easy_perform
Lloh16:
	adrp	x8, _CURLE_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CURLE_OK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
Lloh19:
	adrp	x8, _CURLINFO_RESPONSE_CODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CURLINFO_RESPONSE_CODE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_curl_easy_getinfo
Lloh22:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [sp, #16]
	cmp	x8, #200
	b.ne	LBB0_14
; %bb.6:
	mov	x8, x19
	ldr	x20, [x8, #8]!
	cbz	x20, LBB0_17
; %bb.7:
	ldr	x9, [x29, #32]
	cbz	x9, LBB0_9
; %bb.8:
	ldr	x10, [x19, #16]
	str	x10, [x9]
LBB0_9:
	stp	xzr, xzr, [x8]
Lloh27:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_10:
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.11:
	bl	_curl_easy_strerror
	mov	x8, x0
	str	x0, [x19]
LBB0_12:
Lloh32:
	adrp	x9, _MSG_ERROR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MSG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x2, #0
	cbnz	x22, LBB0_3
	b	LBB0_4
LBB0_14:
Lloh37:
	adrp	x9, l_.str.4@PAGE
Lloh38:
	add	x9, x9, l_.str.4@PAGEOFF
	str	x9, [x19]
Lloh39:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	bl	_wpa_printf
	mov	x0, x19
	bl	_free_curl_buf
LBB0_16:
	mov	x20, #0
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"curl: HTTP POST to %s"

l_.str.1:                               ; @.str.1
	.asciz	"Content-Type: %s"

	.comm	_CURLOPT_HTTPHEADER,4,2         ; @CURLOPT_HTTPHEADER
	.comm	_CURLOPT_POSTFIELDS,4,2         ; @CURLOPT_POSTFIELDS
	.comm	_CURLE_OK,8,3                   ; @CURLE_OK
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"curl_easy_perform() failed: %s"

	.comm	_CURLINFO_RESPONSE_CODE,4,2     ; @CURLINFO_RESPONSE_CODE
l_.str.3:                               ; @.str.3
	.asciz	"curl: Server response code %ld"

l_.str.4:                               ; @.str.4
	.asciz	"HTTP POST failed"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.5:                               ; @.str.5
	.asciz	"HTTP POST failed - code %ld"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.6:                               ; @.str.6
	.asciz	"Server response:\n%s"

.subsections_via_symbols
