	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmit_fd
_transmit_fd:                           ## @transmit_fd
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -136(%rbp)                ## 4-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%ecx, %edi
	callq	_f_get
	movl	(%rax), %r13d
	movq	$0, -176(%rbp)
	movl	$4, %edi
	callq	_CMSG_SPACE
	movl	%eax, %ebx
	movq	%rsp, -168(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r12, -184(%rbp)
	movl	%ebx, -176(%rbp)
	leaq	-184(%rbp), %r12
	movq	%r12, %rdi
	callq	_CMSG_FIRSTHDR
	movq	%rax, %rbx
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_SCM_RIGHTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$4, %edi
	callq	_CMSG_LEN
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	movl	%r13d, (%rax)
	movl	%r15d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sendmsg
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_trycall
	leaq	-208(%rbp), %rsi
	movl	%r14d, %edi
	callq	_getregs
	movups	-208(%rbp), %xmm0
	movaps	%xmm0, -160(%rbp)
	movq	-192(%rbp), %rax
	movq	%rax, -144(%rbp)
	movl	-160(%rbp), %r13d
	leal	-16(%r13), %r15d
	leaq	-64(%rbp), %rdx
	movl	$16, %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pt_readn
	leal	-48(%r13), %r12d
	movl	%r12d, -160(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	%r15d, -80(%rbp)
	movq	$20, -76(%rbp)
	leaq	-128(%rbp), %rdx
	movl	$32, %ecx
	movl	%r14d, %edi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pt_readn
	leaq	-96(%rbp), %rdx
	movl	$28, %ecx
	movl	%r14d, %edi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pt_writen
	movl	$372, -156(%rbp)                ## imm = 0x174
	movl	-136(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -152(%rbp)
	movl	%r12d, -148(%rbp)
	movq	$0, -144(%rbp)
	leaq	-160(%rbp), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_setregs
	movl	%r14d, %edi
	callq	_step
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_getregs
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addl	$-4, %r13d
	leaq	-132(%rbp), %rdx
	movl	$4, %ecx
	movl	%r14d, %edi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_pt_readn
	jmp	LBB0_3
LBB0_2:
	movl	%eax, -132(%rbp)
LBB0_3:
	leaq	-64(%rbp), %rdx
	movl	$16, %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pt_writen
	leaq	-128(%rbp), %rdx
	movl	$32, %ecx
	movl	%r14d, %edi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pt_writen
	leaq	-160(%rbp), %rsi
	movl	%r14d, %edi
	callq	_setregs
	movl	-132(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	-168(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
LBB0_7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %edi
	callq	_transmit_fd.cold.1
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function transmit_fd.cold.1
_transmit_fd.cold.1:                    ## @transmit_fd.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	negl	%edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SCM_RIGHTS,4,2                 ## @SCM_RIGHTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendmsg insanity"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"remote recvmsg insanity"

	.no_dead_strip	_transmit_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function transmit_fd
lCPI0_0:
	.long	20                              ; 0x14
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_transmit_fd:                           ; @transmit_fd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #176
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	sub	x25, x29, #136
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x3
	bl	_f_get
	ldr	w26, [x0]
	stur	xzr, [x29, #-176]
	mov	w0, #4
	bl	_CMSG_SPACE
	mov	x22, x0
	mov	x24, sp
	mov	w8, w0
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	stur	x23, [x29, #-184]
	stur	w22, [x29, #-176]
	sub	x0, x29, #184
	bl	_CMSG_FIRSTHDR
	mov	x22, x0
Lloh5:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SCM_RIGHTS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SCM_RIGHTS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	mov	w0, #4
	bl	_CMSG_LEN
	str	w0, [x22]
	mov	x0, x22
	bl	_CMSG_DATA
	str	w26, [x0]
	sub	x1, x29, #184
	mov	x0, x21
	mov	w2, #0
	bl	_sendmsg
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_trycall
	sub	x1, x29, #208
	mov	x0, x19
	bl	_getregs
	ldur	q0, [x29, #-208]
	stur	q0, [x29, #-240]
	ldur	x8, [x29, #-192]
	stur	x8, [x29, #-224]
	ldur	w23, [x29, #-240]
	sub	w21, w23, #16
	mov	w8, #16
	sub	x9, x29, #104
	stp	x9, x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x21
	bl	_pt_readn
	add	sp, sp, #16
	sub	w22, w23, #48
	stur	w22, [x29, #-240]
	stp	xzr, xzr, [x29, #-136]
	stur	w21, [x29, #-120]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x25, #20]
	mov	w8, #32
	sub	x9, x29, #168
	stp	x9, x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x22
	bl	_pt_readn
	add	sp, sp, #16
	mov	w8, #28
	stp	x25, x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x22
	bl	_pt_writen
	add	sp, sp, #16
	mov	w8, #372
	stp	w8, w20, [x29, #-236]
	stur	w22, [x29, #-228]
	stur	xzr, [x29, #-224]
	sub	x1, x29, #240
	mov	x0, x19
	bl	_setregs
	mov	x0, x19
	bl	_step
	sub	x1, x29, #240
	mov	x0, x19
	bl	_getregs
	ldur	w8, [x29, #-236]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	sub	w1, w23, #4
	mov	w8, #4
	sub	x9, x29, #244
	stp	x9, x8, [sp, #-16]!
	mov	x0, x19
	bl	_pt_readn
	add	sp, sp, #16
	b	LBB0_3
LBB0_2:
	stur	w8, [x29, #-244]
LBB0_3:
	mov	w8, #16
	sub	x9, x29, #104
	stp	x9, x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x21
	bl	_pt_writen
	add	sp, sp, #16
	mov	w8, #32
	sub	x9, x29, #168
	stp	x9, x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x22
	bl	_pt_writen
	add	sp, sp, #16
	sub	x1, x29, #240
	mov	x0, x19
	bl	_setregs
	ldur	w0, [x29, #-244]
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_transmit_fd.cold.1
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function transmit_fd.cold.1
_transmit_fd.cold.1:                    ; @transmit_fd.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	neg	w8, w0
Lloh18:
	adrp	x9, _errno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SCM_RIGHTS,4,2                 ; @SCM_RIGHTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendmsg insanity"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"remote recvmsg insanity"

	.no_dead_strip	_transmit_fd
.subsections_via_symbols
