	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_add                      ## -- Begin function netif_add
	.p2align	4, 0x90
_netif_add:                             ## @netif_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	%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	%r9, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	testq	%r9, %r9
	setne	%sil
	leaq	L_.str(%rip), %rdi
	callq	_LWIP_ASSERT
	leaq	136(%rbx), %rdi
	callq	_ip_addr_set_zero
	leaq	132(%rbx), %rdi
	callq	_ip_addr_set_zero
	leaq	128(%rbx), %rdi
	callq	_ip_addr_set_zero
	movl	$0, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	movq	_netif_add.netifnum(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, _netif_add.netifnum(%rip)
	movq	%rax, 48(%rbx)
	movl	16(%rbp), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	callq	_netif_set_addr
	movq	%rbx, %rdi
	callq	*%r13
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_netif_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	callq	_snmp_inc_iflist
	movq	_NETIF_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	8(%rbx), %rax
	movslq	4(%rax), %rsi
	callq	_LWIP_DEBUGF
	movl	(%r14), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ip_addr_debug_print
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_LWIP_DEBUGF
	movl	(%r14), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ip_addr_debug_print
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_LWIP_DEBUGF
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ip_addr_debug_print
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_LWIP_DEBUGF
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_netif_add.netifnum,8,3 ## @netif_add.netifnum
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No init function given"

	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_netif_list,8,3                 ## @netif_list
	.comm	_NETIF_DEBUG,4,2                ## @NETIF_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	" netmask "

L_.str.3:                               ## @.str.3
	.asciz	" gw "

L_.str.4:                               ## @.str.4
	.asciz	"\n"

	.comm	_NETIF_FLAG_IGMP,4,2            ## @NETIF_FLAG_IGMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_add                      ; -- Begin function netif_add
	.p2align	2
_netif_add:                             ; @netif_add
	.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	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cmp	x5, #0
	cset	w1, ne
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LWIP_ASSERT
	add	x0, x19, #136
	bl	_ip_addr_set_zero
	add	x0, x19, #132
	bl	_ip_addr_set_zero
	add	x0, x19, #128
	bl	_ip_addr_set_zero
	str	wzr, [x19]
	adrp	x8, _netif_add.netifnum@PAGE
	ldr	x9, [x8, _netif_add.netifnum@PAGEOFF]
	add	x10, x9, #1
	str	x10, [x8, _netif_add.netifnum@PAGEOFF]
	stp	x9, x25, [x19, #48]
	str	w23, [x19, #40]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_netif_set_addr
	mov	x0, x19
	blr	x24
Lloh2:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _netif_list@GOTPAGE
Lloh6:
	ldr	x8, [x8, _netif_list@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19, #16]
	str	x19, [x8]
	bl	_snmp_inc_iflist
Lloh7:
	adrp	x23, _NETIF_DEBUG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _NETIF_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x19, #8]
	ldrsw	x1, [x8, #4]
	bl	_LWIP_DEBUGF
	ldr	w0, [x23]
	mov	x1, x22
	bl	_ip_addr_debug_print
	ldr	w0, [x23]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_LWIP_DEBUGF
	ldr	w0, [x23]
	mov	x1, x21
	bl	_ip_addr_debug_print
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_LWIP_DEBUGF
	ldr	w0, [x23]
	mov	x1, x20
	bl	_ip_addr_debug_print
	ldr	w0, [x23]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_LWIP_DEBUGF
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_netif_add.netifnum,8,3 ; @netif_add.netifnum
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No init function given"

	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_netif_list,8,3                 ; @netif_list
	.comm	_NETIF_DEBUG,4,2                ; @NETIF_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	" netmask "

l_.str.3:                               ; @.str.3
	.asciz	" gw "

l_.str.4:                               ; @.str.4
	.asciz	"\n"

	.comm	_NETIF_FLAG_IGMP,4,2            ; @NETIF_FLAG_IGMP
.subsections_via_symbols
