	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iapp_send_add
_iapp_send_add:                         ## @iapp_send_add
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_IAPP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movq	_IAPP_CMD_ADD_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	8(%rdi), %edi
	leal	1(%rdi), %eax
	movl	%eax, 8(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_host_to_be16
	movq	%rax, -152(%rbp)
	movl	$56, %edi
	callq	_host_to_be16
	movq	%rax, -160(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -112(%rbp)
	movq	$0, -120(%rbp)
	movq	%r15, %rsi
	callq	_os_memcpy
	movl	%r14d, %edi
	callq	_host_to_be16
	movq	%rax, -136(%rbp)
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -168(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -172(%rbp)
	movq	_IAPP_UDP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, -176(%rbp)
	movl	(%rbx), %edi
	leaq	-160(%rbp), %rsi
	movl	$56, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movl	$12, %r9d
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$152, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IAPP_VERSION,4,2               ## @IAPP_VERSION
	.comm	_IAPP_CMD_ADD_notify,4,2        ## @IAPP_CMD_ADD_notify
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_IAPP_UDP_PORT,4,2              ## @IAPP_UDP_PORT
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendto[IAPP-ADD]: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_iapp_send_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iapp_send_add
_iapp_send_add:                         ; @iapp_send_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _IAPP_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAPP_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IAPP_CMD_ADD_notify@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IAPP_CMD_ADD_notify@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	ldr	w0, [x0, #8]
	add	w8, w0, #1
	str	w8, [x19, #8]
	bl	_host_to_be16
	str	x0, [sp, #32]
	mov	w0, #56
	bl	_host_to_be16
Lloh9:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	str	w2, [sp, #72]
	str	x0, [sp, #24]
	str	xzr, [sp, #64]
	mov	x1, x21
	bl	_os_memcpy
	mov	x0, x20
	bl	_host_to_be16
	str	x0, [sp, #48]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
Lloh12:
	adrp	x8, _AF_INET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	stp	w9, w8, [sp, #12]
Lloh15:
	adrp	x8, _IAPP_UDP_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IAPP_UDP_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [sp, #8]
	ldr	w0, [x19]
	add	x1, sp, #24
	add	x4, sp, #8
	mov	w2, #56
	mov	w3, #0
	mov	w5, #12
	bl	_sendto
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IAPP_VERSION,4,2               ; @IAPP_VERSION
	.comm	_IAPP_CMD_ADD_notify,4,2        ; @IAPP_CMD_ADD_notify
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_IAPP_UDP_PORT,4,2              ; @IAPP_UDP_PORT
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendto[IAPP-ADD]: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_iapp_send_add
.subsections_via_symbols
