	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_link_update               ## -- Begin function http_link_update
	.p2align	4, 0x90
_http_link_update:                      ## @http_link_update
	.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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%rbx, %r14
	jmp	LBB0_18
LBB0_4:
	xorl	%r14d, %r14d
LBB0_18:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_os_strlen
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_os_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	addl	$2, %eax
	movslq	%eax, %r12
	movq	%r12, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	leaq	7(%r15), %rdi
	cmpb	$47, (%rbx)
	jne	LBB0_11
## %bb.8:
	movl	$47, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %r13
	subq	%r15, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_os_memcpy
	movq	%r14, %r15
	addq	%r13, %r15
	jmp	LBB0_13
LBB0_11:
	movl	$47, %esi
	callq	_os_strrchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %r13
	subq	%r15, %r13
	leal	1(%r13), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_os_memcpy
	leaq	(%r14,%r13), %r15
	incq	%r15
LBB0_13:
	movq	%rbx, %rdi
	callq	_os_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.2(%rip), %rdx
LBB0_16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_os_snprintf
LBB0_17:
	movq	%rbx, %rdi
	callq	_os_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http://"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_link_update               ; -- Begin function http_link_update
	.p2align	2
_http_link_update:                      ; @http_link_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_6
LBB0_3:
	mov	x20, x19
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_os_strlen
	mov	x20, x0
	mov	x0, x21
	bl	_os_strlen
	add	w8, w20, w0
	add	w8, w8, #2
	sxtw	x22, w8
	mov	x0, x22
	bl	_os_malloc
	cbz	x0, LBB0_3
; %bb.7:
	mov	x20, x0
	ldrb	w8, [x19]
	add	x0, x21, #7
	mov	w1, #47
	cmp	w8, #47
	b.ne	LBB0_10
; %bb.8:
	bl	_os_strchr
	cbz	x0, LBB0_13
; %bb.9:
	sub	x22, x0, x21
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_os_memcpy
	add	x21, x20, x22
	b	LBB0_12
LBB0_10:
	bl	_os_strrchr
	cbz	x0, LBB0_14
; %bb.11:
	sub	x22, x0, x21
	add	w2, w22, #1
	mov	x0, x20
	mov	x1, x21
	bl	_os_memcpy
	add	x8, x20, x22
	add	x21, x8, #1
LBB0_12:
	mov	x0, x19
	bl	_os_strlen
	add	w2, w0, #1
	mov	x0, x21
	mov	x1, x19
	bl	_os_memcpy
	b	LBB0_16
LBB0_13:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	mov	x4, x19
	bl	_os_snprintf
LBB0_16:
	mov	x0, x19
	bl	_os_free
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http://"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

.subsections_via_symbols
