	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_client_addr               ## -- Begin function http_client_addr
	.p2align	4, 0x90
_http_client_addr:                      ## @http_client_addr
	.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	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	$48, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movl	$-1, (%rax)
	movl	(%r15), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 8(%rbx)
	movq	%r13, 16(%rbx)
	movq	%r12, 32(%rbx)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_8:
	movq	%rbx, %rdi
	callq	_http_client_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_connect
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_6
LBB0_10:
	movl	(%rbx), %edi
	movq	_EVENT_TYPE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_http_client_tx_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_sock
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:
	movq	_HTTP_CLIENT_TIMEOUT_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_http_client_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	testq	%rax, %rax
	jne	LBB0_8
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	jmp	LBB0_13
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTTP: fnctl(O_NONBLOCK) failed: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"HTTP: Failed to connect: %s"

	.comm	_EVENT_TYPE_WRITE,4,2           ## @EVENT_TYPE_WRITE
	.comm	_http_client_tx_ready,4,2       ## @http_client_tx_ready
	.comm	_HTTP_CLIENT_TIMEOUT_SEC,4,2    ## @HTTP_CLIENT_TIMEOUT_SEC
	.comm	_http_client_timeout,4,2        ## @http_client_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_client_addr               ; -- Begin function http_client_addr
	.p2align	2
_http_client_addr:                      ; @http_client_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #48
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	w8, #-1
	str	w8, [x19]
	ldr	w8, [x21]
	str	w8, [x19, #40]
	stp	x24, x23, [x19, #8]
	str	x22, [x19, #32]
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_fcntl
	cbz	x0, LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_wpa_printf
LBB0_5:
	mov	x0, x19
	bl	_http_client_free
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x21
	mov	w2, #4
	bl	_connect
	cbz	x0, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
Lloh23:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
LBB0_9:
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _EVENT_TYPE_WRITE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EVENT_TYPE_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _http_client_tx_ready@GOTPAGE
Lloh30:
	ldr	x8, [x8, _http_client_tx_ready@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_sock
	cbnz	x0, LBB0_5
; %bb.10:
Lloh32:
	adrp	x8, _HTTP_CLIENT_TIMEOUT_SEC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HTTP_CLIENT_TIMEOUT_SEC@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _http_client_timeout@GOTPAGE
Lloh36:
	ldr	x8, [x8, _http_client_timeout@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	cbnz	x0, LBB0_5
; %bb.11:
	str	x20, [x19, #24]
	b	LBB0_6
LBB0_12:
Lloh38:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh40:
	ldr	w20, [x8]
	bl	_strerror
	mov	x2, x0
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTTP: fnctl(O_NONBLOCK) failed: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"HTTP: Failed to connect: %s"

	.comm	_EVENT_TYPE_WRITE,4,2           ; @EVENT_TYPE_WRITE
	.comm	_http_client_tx_ready,4,2       ; @http_client_tx_ready
	.comm	_HTTP_CLIENT_TIMEOUT_SEC,4,2    ; @HTTP_CLIENT_TIMEOUT_SEC
	.comm	_http_client_timeout,4,2        ; @http_client_timeout
.subsections_via_symbols
