	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iapp_deinit                    ## -- Begin function iapp_deinit
	.p2align	4, 0x90
_iapp_deinit:                           ## @iapp_deinit
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	js	LBB0_5
## %bb.2:
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movl	16(%rbx), %eax
	movl	%eax, -20(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	(%rbx), %rdi
	movq	_SOL_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IP_DROP_MEMBERSHIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	movl	$16, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_4:
	movq	(%rbx), %rdi
	callq	_eloop_unregister_read_sock
	movq	(%rbx), %rdi
	callq	_close
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_7
## %bb.6:
	callq	_eloop_unregister_read_sock
	movq	8(%rbx), %rdi
	callq	_close
LBB0_7:
	movq	%rbx, %rdi
	callq	_os_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_SOL_IP,4,2                     ## @SOL_IP
	.comm	_IP_DROP_MEMBERSHIP,4,2         ## @IP_DROP_MEMBERSHIP
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iapp_deinit - setsockopt[UDP,IP_DEL_MEMBERSHIP]: %s"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iapp_deinit                    ; -- Begin function iapp_deinit
	.p2align	2
_iapp_deinit:                           ; @iapp_deinit
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_5
; %bb.2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
Lloh0:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
	ldr	w9, [x19, #16]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w9, [sp, #8]
	str	xzr, [sp]
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _SOL_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOL_IP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _IP_DROP_MEMBERSHIP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IP_DROP_MEMBERSHIP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, sp
	mov	w4, #16
	bl	_setsockopt
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
LBB0_4:
	ldr	x0, [x19]
	bl	_eloop_unregister_read_sock
	ldr	x0, [x19]
	bl	_close
LBB0_5:
	ldr	x0, [x19, #8]
	tbnz	x0, #63, LBB0_7
; %bb.6:
	bl	_eloop_unregister_read_sock
	ldr	x0, [x19, #8]
	bl	_close
LBB0_7:
	mov	x0, x19
	bl	_os_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_SOL_IP,4,2                     ; @SOL_IP
	.comm	_IP_DROP_MEMBERSHIP,4,2         ; @IP_DROP_MEMBERSHIP
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iapp_deinit - setsockopt[UDP,IP_DEL_MEMBERSHIP]: %s"

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