	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_client_url_parse          ## -- Begin function http_client_url_parse
	.p2align	4, 0x90
_http_client_url_parse:                 ## @http_client_url_parse
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_os_strdup
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	7(%r13), %r14
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_os_strchr
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_os_strchr
	testq	%rbx, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.2:
	movb	$0, (%rbx)
	cmpq	%rbx, %rax
	ja	LBB0_8
## %bb.6:
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	jmp	LBB0_9
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_5:
	leaq	L_.str(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	leaq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_inet_aton
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	callq	_atoi
	movl	%eax, %edi
	jmp	LBB0_14
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_wpa_printf
	movq	%r13, %rdi
	callq	_os_free
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_13:
	movl	$80, %edi
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_htons
	movq	%rax, (%r15)
	cmpb	$0, (%rbx)
	jne	LBB0_16
## %bb.15:
	movb	$47, (%rbx)
LBB0_16:
	movq	%rbx, (%r14)
LBB0_17:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"HTTP: Unsupported address in URL '%s' (addr='%s' port='%s')"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_client_url_parse          ; -- Begin function http_client_url_parse
	.p2align	2
_http_client_url_parse:                 ; @http_client_url_parse
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_os_strdup
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	add	x24, x19, #7
	mov	x0, x24
	mov	w1, #47
	bl	_os_strchr
	mov	x23, x0
	mov	x0, x24
	mov	w1, #58
	bl	_os_strchr
	mov	x25, x0
	cbz	x23, LBB0_4
; %bb.2:
	strb	wzr, [x23]
	cmp	x25, x23
	b.ls	LBB0_5
; %bb.3:
	mov	x25, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:
	cbz	x25, LBB0_7
; %bb.6:
	strb	wzr, [x25], #1
LBB0_7:
	add	x1, x21, #8
	mov	x0, x24
	bl	_inet_aton
	cbz	x0, LBB0_10
; %bb.8:
	cbz	x25, LBB0_11
; %bb.9:
	mov	x0, x25
	bl	_atoi
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x24
	mov	x4, x25
	bl	_wpa_printf
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
	b	LBB0_15
LBB0_11:
	mov	w0, #80
LBB0_12:
	bl	_htons
	str	x0, [x21]
	ldrb	w8, [x23]
	cbnz	w8, LBB0_14
; %bb.13:
	mov	w8, #47
	strb	w8, [x23]
LBB0_14:
	str	x23, [x20]
LBB0_15:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"HTTP: Unsupported address in URL '%s' (addr='%s' port='%s')"

.subsections_via_symbols
