	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_send
_socket_send:                           ## @socket_send
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, -72(%rbp)
	movq	_ISC_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	$0, -56(%rbp)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, 24(%rsi)
	movq	%rcx, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_set_dev_address
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	_ISC_SOCKEVENTATTR_PKTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_isc_sockaddr_issitelocal
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_isc_sockaddr_islinklocal
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_isc_msgcat@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_ISC_MSGSET_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ISC_MSG_PKTINFOPROVIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %r10
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	pushq	(%r14)
	pushq	%r10
	callq	_socket_log
	addq	$16, %rsp
	movq	$0, 8(%rbx)
LBB0_4:
	movq	(%r12), %rax
	movq	_isc_sockettype_udp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_6
## %bb.5:
	leaq	8(%r12), %rdi
	callq	_LOCK
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	12(%r12), %edi
	callq	_ISC_LIST_EMPTY
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_doio_send
	cmpl	$128, %eax
	je	LBB0_7
## %bb.9:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.10:
	cmpl	$129, %eax
	jne	LBB0_11
LBB0_12:
	movq	_ISC_SOCKFLAG_NORETRY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
LBB0_7:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_ISC_SOCKFLAG_IMMEDIATE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_20
## %bb.8:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_send_senddone_event
	jmp	LBB0_20
LBB0_11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_13:
	leaq	-56(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_isc_task_attach
	movq	_ISC_SOCKEVENTATTR_ATTACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	testq	%r13, %r13
	jne	LBB0_15
## %bb.14:
	leaq	8(%r12), %rdi
	callq	_LOCK
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_15:
	movl	12(%r12), %edi
	callq	_ISC_LIST_EMPTY
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpl	$0, 24(%r12)
	jne	LBB0_18
## %bb.17:
	movl	16(%r12), %esi
	movl	20(%r12), %edi
	movq	_SELECT_POKE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_select_poke
LBB0_18:
	movl	12(%r12), %edi
	movq	_ev_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_ISC_LIST_ENQUEUE
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r10
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	pushq	-56(%rbp)
	pushq	%rbx
	pushq	%r10
	callq	_socket_log
	addq	$32, %rsp
	movq	_ISC_SOCKFLAG_IMMEDIATE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_20
## %bb.19:
	movq	_ISC_R_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_20:
	testq	%r13, %r13
	je	LBB0_22
## %bb.21:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_UNLOCK
LBB0_22:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_FALSE,8,3                  ## @ISC_FALSE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.comm	_ISC_SOCKEVENTATTR_PKTINFO,4,2  ## @ISC_SOCKEVENTATTR_PKTINFO
	.comm	_TRACE,4,2                      ## @TRACE
	.comm	_isc_msgcat,4,2                 ## @isc_msgcat
	.comm	_ISC_MSGSET_SOCKET,4,2          ## @ISC_MSGSET_SOCKET
	.comm	_ISC_MSG_PKTINFOPROVIDED,4,2    ## @ISC_MSG_PKTINFOPROVIDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pktinfo structure provided, ifindex %u (set to 0)"

	.comm	_isc_sockettype_udp,8,3         ## @isc_sockettype_udp
	.comm	_ISC_TRUE,8,3                   ## @ISC_TRUE
	.comm	_ISC_SOCKFLAG_NORETRY,4,2       ## @ISC_SOCKFLAG_NORETRY
	.comm	_ISC_SOCKEVENTATTR_ATTACHED,4,2 ## @ISC_SOCKEVENTATTR_ATTACHED
	.comm	_SELECT_POKE_WRITE,4,2          ## @SELECT_POKE_WRITE
	.comm	_ev_link,4,2                    ## @ev_link
	.comm	_EVENT,4,2                      ## @EVENT
L_.str.1:                               ## @.str.1
	.asciz	"socket_send: event %p -> task %p"

	.comm	_ISC_SOCKFLAG_IMMEDIATE,4,2     ## @ISC_SOCKFLAG_IMMEDIATE
	.comm	_ISC_R_INPROGRESS,4,2           ## @ISC_R_INPROGRESS
	.no_dead_strip	_socket_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_send
_socket_send:                           ; @socket_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x5
	mov	x24, x4
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	str	x1, [sp, #24]
Lloh0:
	adrp	x8, _ISC_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	str	x2, [x1, #24]
	mov	x0, x3
	mov	x1, x19
	mov	x2, x22
	bl	_set_dev_address
	cbz	x24, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _ISC_SOCKEVENTATTR_PKTINFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_SOCKEVENTATTR_PKTINFO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	ldr	x8, [x24]
	str	x8, [x22, #8]
	add	x25, x22, #16
	mov	x0, x25
	bl	_isc_sockaddr_issitelocal
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x25
	bl	_isc_sockaddr_islinklocal
	cbnz	w0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _isc_msgcat@GOTPAGE
Lloh13:
	ldr	x8, [x8, _isc_msgcat@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ISC_MSGSET_SOCKET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISC_MSGSET_SOCKET@GOTPAGEOFF]
Lloh16:
	ldrsw	x3, [x8]
Lloh17:
	ldr	w4, [x9]
Lloh18:
	adrp	x8, _ISC_MSG_PKTINFOPROVIDED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISC_MSG_PKTINFOPROVIDED@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	ldr	x7, [x24]
Lloh21:
	adrp	x6, l_.str@PAGE
Lloh22:
	add	x6, x6, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	bl	_socket_log
	str	xzr, [x22, #8]
LBB0_4:
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _isc_sockettype_udp@GOTPAGE
Lloh24:
	ldr	x9, [x9, _isc_sockettype_udp@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	add	x0, x19, #8
	bl	_LOCK
Lloh26:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh28:
	ldr	x26, [x8]
	ldr	w0, [x19, #12]
	bl	_ISC_LIST_EMPTY
	cbz	x0, LBB0_9
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_doio_send
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.7:
	cmp	w0, #130
	b.eq	LBB0_10
; %bb.8:
	cmp	w0, #129
	b.ne	LBB0_12
LBB0_9:
Lloh29:
	adrp	x8, _ISC_SOCKFLAG_NORETRY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ISC_SOCKFLAG_NORETRY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_15
LBB0_10:
Lloh32:
	adrp	x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_12
; %bb.11:
	add	x1, sp, #24
	mov	x0, x19
	bl	_send_senddone_event
LBB0_12:
	cbz	x26, LBB0_14
LBB0_13:
	add	x0, x19, #8
	bl	_UNLOCK
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	add	x1, sp, #16
	mov	x0, x23
	bl	_isc_task_attach
Lloh35:
	adrp	x8, _ISC_SOCKEVENTATTR_ATTACHED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ISC_SOCKEVENTATTR_ATTACHED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	cbnz	x26, LBB0_17
; %bb.16:
	add	x0, x19, #8
	bl	_LOCK
Lloh38:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh40:
	ldr	x26, [x8]
LBB0_17:
	ldr	w0, [x19, #12]
	bl	_ISC_LIST_EMPTY
	cbz	x0, LBB0_20
; %bb.18:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_20
; %bb.19:
	ldp	w1, w0, [x19, #16]
Lloh41:
	adrp	x8, _SELECT_POKE_WRITE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SELECT_POKE_WRITE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_select_poke
LBB0_20:
	ldr	w0, [x19, #12]
Lloh44:
	adrp	x8, _ev_link@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ev_link@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_ISC_LIST_ENQUEUE
Lloh47:
	adrp	x8, _EVENT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh50:
	adrp	x6, l_.str.1@PAGE
Lloh51:
	add	x6, x6, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x7, x22
	bl	_socket_log
Lloh52:
	adrp	x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ISC_SOCKFLAG_IMMEDIATE@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _ISC_R_INPROGRESS@GOTPAGE
Lloh56:
	ldr	x9, [x9, _ISC_R_INPROGRESS@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w20, w20, w9, eq
	cbnz	x26, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_FALSE,8,3                  ; @ISC_FALSE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.comm	_ISC_SOCKEVENTATTR_PKTINFO,4,2  ; @ISC_SOCKEVENTATTR_PKTINFO
	.comm	_TRACE,4,2                      ; @TRACE
	.comm	_isc_msgcat,4,2                 ; @isc_msgcat
	.comm	_ISC_MSGSET_SOCKET,4,2          ; @ISC_MSGSET_SOCKET
	.comm	_ISC_MSG_PKTINFOPROVIDED,4,2    ; @ISC_MSG_PKTINFOPROVIDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pktinfo structure provided, ifindex %u (set to 0)"

	.comm	_isc_sockettype_udp,8,3         ; @isc_sockettype_udp
	.comm	_ISC_TRUE,8,3                   ; @ISC_TRUE
	.comm	_ISC_SOCKFLAG_NORETRY,4,2       ; @ISC_SOCKFLAG_NORETRY
	.comm	_ISC_SOCKEVENTATTR_ATTACHED,4,2 ; @ISC_SOCKEVENTATTR_ATTACHED
	.comm	_SELECT_POKE_WRITE,4,2          ; @SELECT_POKE_WRITE
	.comm	_ev_link,4,2                    ; @ev_link
	.comm	_EVENT,4,2                      ; @EVENT
l_.str.1:                               ; @.str.1
	.asciz	"socket_send: event %p -> task %p"

	.comm	_ISC_SOCKFLAG_IMMEDIATE,4,2     ; @ISC_SOCKFLAG_IMMEDIATE
	.comm	_ISC_R_INPROGRESS,4,2           ; @ISC_R_INPROGRESS
	.no_dead_strip	_socket_send
.subsections_via_symbols
