	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_message_send                ## -- Begin function uc_message_send
	.p2align	4, 0x90
_uc_message_send:                       ## @uc_message_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r14
	jmp	LBB0_3
LBB0_2:
	xorl	%r14d, %r14d
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_uc_dbgmsg
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_uc_dbgmsg
	movq	%rbx, %rdi
	callq	_CMSG_FIRSTHDR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_uc_dbgmsg
LBB0_5:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sendmsg
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	cmpq	%r14, %rax
	jne	LBB0_11
## %bb.7:
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_uc_sync_send
	testq	%rax, %rax
	js	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	callq	_uc_logmsg
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_uc_logmsgx
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send: data size %zu"

L_.str.1:                               ## @.str.1
	.asciz	"send: msghdr.msg_controllen %u"

L_.str.2:                               ## @.str.2
	.asciz	"send: cmsghdr.cmsg_len %u"

L_.str.3:                               ## @.str.3
	.asciz	"message_send: sendmsg"

L_.str.4:                               ## @.str.4
	.asciz	"message_send: sendmsg: sent %zd of %zu bytes"

	.comm	_uc_cfg,4,2                     ## @uc_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_message_send                ; -- Begin function uc_message_send
	.p2align	2
_uc_message_send:                       ; @uc_message_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x19, [x8]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_uc_dbgmsg
	ldr	x1, [x20]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_dbgmsg
	mov	x0, x20
	bl	_CMSG_FIRSTHDR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [x0]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uc_dbgmsg
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_sendmsg
	tbnz	x0, #63, LBB0_10
; %bb.6:
	mov	x1, x0
	cmp	x0, x19
	b.ne	LBB0_11
; %bb.7:
Lloh6:
	adrp	x8, _uc_cfg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _uc_cfg@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_uc_sync_send
	tbnz	x0, #63, LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_uc_logmsg
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_uc_logmsgx
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send: data size %zu"

l_.str.1:                               ; @.str.1
	.asciz	"send: msghdr.msg_controllen %u"

l_.str.2:                               ; @.str.2
	.asciz	"send: cmsghdr.cmsg_len %u"

l_.str.3:                               ; @.str.3
	.asciz	"message_send: sendmsg"

l_.str.4:                               ; @.str.4
	.asciz	"message_send: sendmsg: sent %zd of %zu bytes"

	.comm	_uc_cfg,4,2                     ; @uc_cfg
.subsections_via_symbols
