	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_accept                   ## -- Begin function swrap_accept
	.p2align	4, 0x90
_swrap_accept:                          ## @swrap_accept
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	$64, -88(%rbp)
	movq	$64, -80(%rbp)
	callq	_find_socket_info
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movl	32(%rax), %edi
	callq	_socket_length
	testq	%rax, %rax
	js	LBB0_12
## %bb.2:
	movq	%rax, %r15
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %rcx
	movl	$-1, %eax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-216(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-88(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_real_accept
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.4:
	movq	%r15, -56(%rbp)
	movq	-88(%rbp), %rdx
	movl	32(%r12), %ecx
	leaq	-216(%rbp), %rsi
	leaq	-56(%rbp), %r9
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_sockaddr_convert_from_un
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.5:
	movl	$64, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movl	32(%r12), %eax
	movl	%eax, 32(%r14)
	movl	60(%r12), %eax
	movl	%eax, 60(%r14)
	movl	56(%r12), %eax
	movl	%eax, 56(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r14)
	movq	-56(%rbp), %rsi
	movq	%rsi, 48(%r14)
	movq	%rbx, %rdi
	callq	_sockaddr_dup
	movq	%rax, 40(%r14)
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rdx
	movq	%rdx, (%r13)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_memcpy
	movq	$0, (%r13)
LBB0_8:
	leaq	-152(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_real_getsockname
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.9:
	movq	%r15, -56(%rbp)
	movq	-80(%rbp), %rdx
	movl	32(%r14), %ecx
	leaq	-152(%rbp), %rsi
	leaq	-56(%rbp), %r9
	movq	%r14, %rdi
	movq	%rbx, %r8
	callq	_sockaddr_convert_from_un
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.10:
	movq	-56(%rbp), %rsi
	movq	%rsi, 24(%r14)
	movq	%rbx, %rdi
	callq	_sockaddr_dup
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	_free
	movq	_sockets@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_SWRAP_DLIST_ADD
	movq	_SWRAP_ACCEPT_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	movq	_SWRAP_ACCEPT_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	movq	_SWRAP_ACCEPT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_11:
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_real_accept                    ## TAILCALL
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_18
LBB0_14:
	movq	%r14, %rdi
	jmp	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	callq	_free
LBB0_16:
	movq	%rbx, %rdi
LBB0_17:
	callq	_free
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_close
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_sockets,4,2                    ## @sockets
	.comm	_SWRAP_ACCEPT_SEND,4,2          ## @SWRAP_ACCEPT_SEND
	.comm	_SWRAP_ACCEPT_RECV,4,2          ## @SWRAP_ACCEPT_RECV
	.comm	_SWRAP_ACCEPT_ACK,4,2           ## @SWRAP_ACCEPT_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_accept                   ; -- Begin function swrap_accept
	.p2align	2
_swrap_accept:                          ; @swrap_accept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	w8, #64
	str	x8, [sp, #88]
	str	x8, [sp, #16]
	bl	_find_socket_info
	cbz	x0, LBB0_11
; %bb.1:
	mov	x25, x0
	ldr	w0, [x0, #32]
	bl	_socket_length
	tbnz	x0, #63, LBB0_12
; %bb.2:
	mov	x24, x0
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.3:
	mov	x21, x0
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x1, sp, #96
	add	x2, sp, #88
	mov	x0, x20
	bl	_real_accept
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.4:
	str	x24, [sp, #8]
	ldr	x2, [sp, #88]
	ldr	w3, [x25, #32]
	add	x1, sp, #96
	add	x5, sp, #8
	mov	x0, x25
	mov	x4, x21
	bl	_sockaddr_convert_from_un
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.5:
	mov	w0, #64
	bl	_malloc
	mov	x23, x0
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	w20, [x23]
	ldr	w8, [x25, #32]
	str	w8, [x23, #32]
	ldr	d0, [x25, #56]
	str	d0, [x23, #56]
	movi.2s	v0, #1
	stur	d0, [x23, #4]
	ldr	x1, [sp, #8]
	str	x1, [x23, #48]
	mov	x0, x21
	bl	_sockaddr_dup
	str	x0, [x23, #40]
	cbz	x19, LBB0_8
; %bb.6:
	cbz	x22, LBB0_8
; %bb.7:
	ldr	x2, [sp, #8]
	str	x2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_memcpy
	str	xzr, [x22]
LBB0_8:
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x20
	bl	_real_getsockname
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.9:
	str	x24, [sp, #8]
	ldr	x2, [sp, #16]
	ldr	w3, [x23, #32]
	add	x1, sp, #24
	add	x5, sp, #8
	mov	x0, x23
	mov	x4, x21
	bl	_sockaddr_convert_from_un
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.10:
	ldr	x1, [sp, #8]
	str	x1, [x23, #24]
	mov	x0, x21
	bl	_sockaddr_dup
	str	x0, [x23, #16]
	mov	x0, x21
	bl	_free
Lloh0:
	adrp	x8, _sockets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sockets@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_SWRAP_DLIST_ADD
Lloh3:
	adrp	x8, _SWRAP_ACCEPT_SEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWRAP_ACCEPT_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
Lloh6:
	adrp	x8, _SWRAP_ACCEPT_RECV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SWRAP_ACCEPT_RECV@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
Lloh9:
	adrp	x8, _SWRAP_ACCEPT_ACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SWRAP_ACCEPT_ACK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
	b	LBB0_19
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #240
	b	_real_accept
LBB0_12:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _errno@GOTPAGE
Lloh16:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	b	LBB0_18
LBB0_13:
	mov	x0, x21
	bl	_free
	b	LBB0_19
LBB0_14:
	mov	x0, x23
	b	LBB0_17
LBB0_15:
	mov	x0, x23
	bl	_free
LBB0_16:
	mov	x0, x21
LBB0_17:
	bl	_free
	mov	x0, x20
	bl	_close
LBB0_18:
	mov	w20, #-1
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_sockets,4,2                    ; @sockets
	.comm	_SWRAP_ACCEPT_SEND,4,2          ; @SWRAP_ACCEPT_SEND
	.comm	_SWRAP_ACCEPT_RECV,4,2          ; @SWRAP_ACCEPT_RECV
	.comm	_SWRAP_ACCEPT_ACK,4,2           ; @SWRAP_ACCEPT_ACK
.subsections_via_symbols
