	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendip                         ## -- Begin function sendip
	.p2align	4, 0x90
_sendip:                                ## @sendip
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	$4, -44(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_getsockname
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movl	-40(%rbp), %esi
	movl	$4, %edx
	callq	_strncpy
	movq	_SIOCGIFADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r12, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	movl	-56(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_7:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_perror
	movl	$-1, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getsockname"

	.comm	_SIOCGIFADDR,4,2                ## @SIOCGIFADDR
L_.str.1:                               ## @.str.1
	.asciz	"ioctl SIOCGIFADDR"

L_.str.2:                               ## @.str.2
	.asciz	"send"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendip                         ; -- Begin function sendip
	.p2align	2
_sendip:                                ; @sendip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w8, #4
	str	w8, [sp, #20]
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_getsockname
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #12]
	ldr	w1, [sp, #24]
	mov	w2, #4
	bl	_strncpy
Lloh0:
	adrp	x8, _SIOCGIFADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [x20]
	ldr	w1, [sp, #8]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_write
	cmn	w0, #1
	b.eq	LBB0_6
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
	add	sp, sp, #80
	ret
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_perror
	mov	w19, #-1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getsockname"

	.comm	_SIOCGIFADDR,4,2                ; @SIOCGIFADDR
l_.str.1:                               ; @.str.1
	.asciz	"ioctl SIOCGIFADDR"

l_.str.2:                               ; @.str.2
	.asciz	"send"

.subsections_via_symbols
