	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_build_message
_event_build_message:                   ## @event_build_message
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_wpabuf_len
	leaq	1000(%rax), %rdi
	callq	_wpabuf_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_printf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	16(%r14), %rax
	movl	4(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_printf
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %r15
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$80, %edx
	callq	_uuid_bin2str
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	leaq	L_.str.5(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put_str
	movl	(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_printf
	movl	4(%r14), %edi
	callq	_wpabuf_len
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_wpabuf_printf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put_str
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_buf
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOTIFY %s HTTP/1.1\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"SERVER: Unspecified, UPnP/1.0, Unspecified\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"HOST: %s\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"CONTENT-TYPE: text/xml; charset=\"utf-8\"\r\nNT: upnp:event\r\nNTS: upnp:propchange\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"SID: uuid:"

L_.str.5:                               ## @.str.5
	.asciz	"\r\n"

L_.str.6:                               ## @.str.6
	.asciz	"SEQ: %u\r\n"

L_.str.7:                               ## @.str.7
	.asciz	"CONTENT-LENGTH: %d\r\n"

	.no_dead_strip	_event_build_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_build_message
_event_build_message:                   ; @event_build_message
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_wpabuf_len
	add	x0, x0, #1000
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_printf
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_put_str
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_printf
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_put_str
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_put_str
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #80
	bl	_uuid_bin2str
	mov	x0, x21
	bl	_os_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_wpabuf_put
Lloh10:
	adrp	x21, l_.str.5@PAGE
Lloh11:
	add	x21, x21, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_put_str
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_printf
	ldr	w0, [x19, #4]
	bl	_wpabuf_len
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wpabuf_printf
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_put_str
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_wpabuf_put_buf
LBB0_2:
	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
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOTIFY %s HTTP/1.1\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"SERVER: Unspecified, UPnP/1.0, Unspecified\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"HOST: %s\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"CONTENT-TYPE: text/xml; charset=\"utf-8\"\r\nNT: upnp:event\r\nNTS: upnp:propchange\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"SID: uuid:"

l_.str.5:                               ; @.str.5
	.asciz	"\r\n"

l_.str.6:                               ; @.str.6
	.asciz	"SEQ: %u\r\n"

l_.str.7:                               ; @.str.7
	.asciz	"CONTENT-LENGTH: %d\r\n"

	.no_dead_strip	_event_build_message
.subsections_via_symbols
