	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_client_url                ## -- Begin function http_client_url
	.p2align	4, 0x90
_http_client_url:                       ## @http_client_url
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_http_client_url_parse
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_os_strlen
	leaq	1000(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	-72(%rbp), %rbx
	movl	-44(%rbp), %edi
	callq	_inet_ntoa
	movl	%eax, %r14d
	movl	-48(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_wpabuf_printf
	movq	%r15, %r14
LBB0_7:
	movq	%r13, %rdi
	callq	_os_free
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_http_client_addr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_wpabuf_free
	jmp	LBB0_9
LBB0_5:
	movq	%r13, %rdi
	callq	_os_free
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http://"

L_.str.1:                               ## @.str.1
	.asciz	"GET %s HTTP/1.1\r\nCache-Control: no-cache\r\nPragma: no-cache\r\nAccept: text/xml, application/xml\r\nUser-Agent: wpa_supplicant\r\nHost: %s:%d\r\n\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_client_url                ; -- Begin function http_client_url
	.p2align	2
_http_client_url:                       ; @http_client_url
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x24
	bl	_http_client_url_parse
	cbz	x0, LBB0_2
; %bb.4:
	mov	x23, x0
	cbz	x22, LBB0_6
; %bb.5:
	mov	x24, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x24
	bl	_os_strlen
	add	x0, x0, #1000
	bl	_wpabuf_alloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	ldr	x24, [sp]
	ldr	w0, [sp, #12]
	bl	_inet_ntoa
	mov	x25, x0
	ldr	w0, [sp, #8]
	bl	_ntohs
	mov	x4, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	mov	x3, x25
	bl	_wpabuf_printf
	mov	x24, x22
LBB0_8:
	mov	x0, x23
	bl	_os_free
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_http_client_addr
	cbnz	x0, LBB0_2
; %bb.9:
	mov	x0, x24
	bl	_wpabuf_free
	b	LBB0_1
LBB0_10:
	mov	x0, x23
	bl	_os_free
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http://"

l_.str.1:                               ; @.str.1
	.asciz	"GET %s HTTP/1.1\r\nCache-Control: no-cache\r\nPragma: no-cache\r\nAccept: text/xml, application/xml\r\nUser-Agent: wpa_supplicant\r\nHost: %s:%d\r\n\r\n"

.subsections_via_symbols
