	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_client_tx_ready
_http_client_tx_ready:                  ## @http_client_tx_ready
	.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	%rsi, %rbx
	movq	40(%rsi), %rdi
	callq	_wpabuf_len
	movq	%rax, %r14
	subq	(%rbx), %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	52(%rbx), %edi
	callq	_inet_ntoa
	movl	%eax, %r12d
	movl	48(%rbx), %edi
	callq	_ntohs
	movl	%eax, %r13d
	movq	40(%rbx), %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movq	%rax, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	36(%rbx), %r15d
	movq	40(%rbx), %rdi
	callq	_wpabuf_head_u8
	addq	(%rbx), %rax
	movl	%r15d, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_send
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	movl	%eax, %r13d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	subq	%r13, %r14
	jbe	LBB0_5
## %bb.4:
	movq	40(%rbx), %rdi
	callq	_wpabuf_len
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movq	%rax, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	addq	%r13, (%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	36(%rbx), %edi
	movq	_EVENT_TYPE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eloop_unregister_sock
	jmp	LBB0_2
LBB0_5:
	movl	52(%rbx), %edi
	callq	_inet_ntoa
	movl	%eax, %r14d
	movl	48(%rbx), %edi
	callq	_ntohs
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	36(%rbx), %edi
	movq	_EVENT_TYPE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eloop_unregister_sock
	movq	40(%rbx), %rdi
	callq	_wpabuf_free
	movq	$0, 40(%rbx)
	movl	32(%rbx), %ecx
	movl	36(%rbx), %edi
	movq	_http_client_got_response@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HTTP_CLIENT_TIMEOUT_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	callq	_httpread_create
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	16(%rbx), %rax
	movl	8(%rbx), %edi
	movq	_HTTP_CLIENT_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTTP: Send client request to %s:%d (%lu of %lu bytes remaining)"

L_.str.1:                               ## @.str.1
	.asciz	"HTTP: Failed to send buffer: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_EVENT_TYPE_WRITE,4,2           ## @EVENT_TYPE_WRITE
	.comm	_HTTP_CLIENT_FAILED,4,2         ## @HTTP_CLIENT_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"HTTP: Sent %d of %lu bytes; %lu bytes remaining"

L_.str.3:                               ## @.str.3
	.asciz	"HTTP: Full client request sent to %s:%d"

	.comm	_http_client_got_response,4,2   ## @http_client_got_response
	.comm	_HTTP_CLIENT_TIMEOUT_SEC,4,2    ## @HTTP_CLIENT_TIMEOUT_SEC
	.no_dead_strip	_http_client_tx_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_client_tx_ready
_http_client_tx_ready:                  ; @http_client_tx_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	ldr	x0, [x1, #40]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x20, x0, x8
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w21, [x24]
	ldr	w0, [x19, #52]
	bl	_inet_ntoa
	mov	x22, x0
	ldr	w0, [x19, #48]
	bl	_ntohs
	mov	x23, x0
	ldr	x0, [x19, #40]
	bl	_wpabuf_len
	stp	x0, x20, [sp, #8]
	str	x23, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_wpa_printf
	ldr	w21, [x19, #36]
	ldr	x0, [x19, #40]
	bl	_wpabuf_head_u8
	ldr	x8, [x19]
	add	x1, x8, x0
	mov	x0, x21
	mov	x2, x20
	mov	w3, #0
	bl	_send
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	w23, w0
	ldr	w21, [x24]
	subs	x20, x20, x23
	b.ls	LBB0_4
; %bb.2:
	ldr	x0, [x19, #40]
	bl	_wpabuf_len
	stp	x0, x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_wpa_printf
	ldr	x8, [x19]
	add	x8, x8, x23
	str	x8, [x19]
	b	LBB0_5
LBB0_3:
	ldr	w20, [x24]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	w0, [x19, #36]
Lloh11:
	adrp	x8, _EVENT_TYPE_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVENT_TYPE_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_eloop_unregister_sock
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #52]
	bl	_inet_ntoa
	mov	x20, x0
	ldr	w0, [x19, #48]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_wpa_printf
	ldr	w0, [x19, #36]
Lloh16:
	adrp	x8, _EVENT_TYPE_WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EVENT_TYPE_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_eloop_unregister_sock
	ldr	x0, [x19, #40]
	bl	_wpabuf_free
	str	xzr, [x19, #40]
Lloh19:
	adrp	x8, _http_client_got_response@GOTPAGE
Lloh20:
	ldr	x8, [x8, _http_client_got_response@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldp	w3, w0, [x19, #32]
Lloh22:
	adrp	x8, _HTTP_CLIENT_TIMEOUT_SEC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HTTP_CLIENT_TIMEOUT_SEC@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x2, x19
	bl	_httpread_create
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	x3, [x19, #16]
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x8, _HTTP_CLIENT_FAILED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HTTP_CLIENT_FAILED@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTTP: Send client request to %s:%d (%lu of %lu bytes remaining)"

l_.str.1:                               ; @.str.1
	.asciz	"HTTP: Failed to send buffer: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_EVENT_TYPE_WRITE,4,2           ; @EVENT_TYPE_WRITE
	.comm	_HTTP_CLIENT_FAILED,4,2         ; @HTTP_CLIENT_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"HTTP: Sent %d of %lu bytes; %lu bytes remaining"

l_.str.3:                               ; @.str.3
	.asciz	"HTTP: Full client request sent to %s:%d"

	.comm	_http_client_got_response,4,2   ; @http_client_got_response
	.comm	_HTTP_CLIENT_TIMEOUT_SEC,4,2    ; @HTTP_CLIENT_TIMEOUT_SEC
	.no_dead_strip	_http_client_tx_ready
.subsections_via_symbols
