	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_interface
_create_interface:                      ## @create_interface
	.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	%rsi, %rbx
	movl	%edi, %r15d
	leaq	32(%rsi), %rdi
	callq	_stoa
	movslq	%r15d, %rsi
	movl	$2, %edi
	callq	_DPRINTF
	movq	%rbx, %rdi
	callq	_new_interface
	movq	%rax, %rbx
	leaq	32(%rax), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_open_socket
	movq	%rax, (%rbx)
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_log_listen_address
LBB0_2:
	movq	_INT_BROADCAST@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.4:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_stoa
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_msyslog
LBB0_5:
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.6:
	cmpq	16(%rbx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	40(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	44(%rbx), %r13d
	movq	%r14, %rdi
	callq	_stoa
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_msyslog
	movq	%rbx, %rdi
	callq	_delete_interface
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	%r14, %rdi
	callq	_AF
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_SET_HOSTMASK
	movq	_RESTRICT_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RESM_NTPONLY@GOTPCREL(%rip), %rax
	movq	_RESM_INTERFACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_RES_IGNORE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$-4, %ecx
	callq	_hack_restrict
	movq	_loopback_interface@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.9:
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	24(%rbx), %rcx
	jne	LBB0_12
## %bb.10:
	movq	_INT_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %edx
	testl	%edx, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	%rbx, (%rax)
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_add_addr_to_list
	movq	%rbx, %rdi
	callq	_add_interface
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edi
	callq	_DPRINT_INTERFACE
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_INT_BROADCAST,4,2              ## @INT_BROADCAST
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Listening on broadcast address %s#%d"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"unable to create socket on %s (%d) for %s#%d"

	.comm	_RESTRICT_FLAGS,4,2             ## @RESTRICT_FLAGS
	.comm	_RESM_NTPONLY,4,2               ## @RESM_NTPONLY
	.comm	_RESM_INTERFACE,4,2             ## @RESM_INTERFACE
	.comm	_RES_IGNORE,4,2                 ## @RES_IGNORE
	.comm	_loopback_interface,8,3         ## @loopback_interface
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_INT_LOOPBACK,4,2               ## @INT_LOOPBACK
L_.str.4:                               ## @.str.4
	.asciz	"\n"

	.comm	_INT_MULTICAST,4,2              ## @INT_MULTICAST
	.comm	_INT_WILDCARD,4,2               ## @INT_WILDCARD
	.comm	_remoteaddr_list,8,3            ## @remoteaddr_list
	.no_dead_strip	_create_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_interface
_create_interface:                      ; @create_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	add	x0, x1, #32
	bl	_stoa
	sxtw	x1, w21
	mov	w0, #2
	bl	_DPRINTF
	mov	x0, x19
	bl	_new_interface
	mov	x19, x0
	add	x20, x0, #32
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	x3, x19
	bl	_open_socket
	str	x0, [x19]
Lloh0:
	adrp	x23, _INVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_log_listen_address
LBB0_2:
Lloh2:
	adrp	x8, _INT_BROADCAST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_BROADCAST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	add	x0, x19, #48
	bl	_stoa
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x21
	bl	_msyslog
LBB0_5:
	ldr	x8, [x23]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	ldp	w24, w23, [x19, #40]
	mov	x0, x20
	bl	_stoa
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x0, x21, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	bl	_msyslog
	mov	x0, x19
	bl	_delete_interface
	mov	x19, #0
	b	LBB0_13
LBB0_8:
	mov	x0, x20
	bl	_AF
	mov	x1, x0
	add	x0, sp, #28
	bl	_SET_HOSTMASK
Lloh15:
	adrp	x8, _RESTRICT_FLAGS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RESTRICT_FLAGS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _RESM_NTPONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RESM_NTPONLY@GOTPAGEOFF]
Lloh20:
	adrp	x9, _RESM_INTERFACE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RESM_INTERFACE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh24:
	adrp	x8, _RES_IGNORE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RES_IGNORE@GOTPAGEOFF]
Lloh26:
	ldr	w5, [x8]
	add	x2, sp, #28
	mov	x1, x20
	mov	w3, #-4
	mov	w6, #0
	bl	_hack_restrict
Lloh27:
	adrp	x8, _loopback_interface@GOTPAGE
Lloh28:
	ldr	x8, [x8, _loopback_interface@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_12
; %bb.9:
Lloh29:
	adrp	x9, _AF_INET@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	x10, [x19, #24]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.10:
Lloh32:
	adrp	x9, _INT_LOOPBACK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _INT_LOOPBACK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.11:
	str	x19, [x8]
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_add_addr_to_list
	mov	x0, x19
	bl	_add_interface
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #2
	bl	_DPRINT_INTERFACE
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_INT_BROADCAST,4,2              ; @INT_BROADCAST
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Listening on broadcast address %s#%d"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"unable to create socket on %s (%d) for %s#%d"

	.comm	_RESTRICT_FLAGS,4,2             ; @RESTRICT_FLAGS
	.comm	_RESM_NTPONLY,4,2               ; @RESM_NTPONLY
	.comm	_RESM_INTERFACE,4,2             ; @RESM_INTERFACE
	.comm	_RES_IGNORE,4,2                 ; @RES_IGNORE
	.comm	_loopback_interface,8,3         ; @loopback_interface
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_INT_LOOPBACK,4,2               ; @INT_LOOPBACK
l_.str.4:                               ; @.str.4
	.asciz	"\n"

	.comm	_INT_MULTICAST,4,2              ; @INT_MULTICAST
	.comm	_INT_WILDCARD,4,2               ; @INT_WILDCARD
	.comm	_remoteaddr_list,8,3            ; @remoteaddr_list
	.no_dead_strip	_create_interface
.subsections_via_symbols
