	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transpose_socket
_transpose_socket:                      ## @transpose_socket
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	$0, -48(%rbp)
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_fd_getd
	movl	%eax, %edi
	movq	_fd_rsocket@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %r15d
	movq	_real@GOTPCREL(%rip), %r12
	movq	_rs@GOTPCREL(%rip), %rax
	movq	%rax, %rbx
	cmoveq	%r12, %rbx
	movq	%r12, %r13
	cmoveq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	*(%rbx)
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	cmpl	$4, -48(%rbp)
	jne	LBB0_2
## %bb.3:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_PF_INET@GOTPCREL(%rip), %rax
LBB0_4:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	(%rax), %edi
	movl	%edx, %r13d
	cmpl	%ecx, %edx
	jne	LBB0_6
## %bb.5:
	movq	_rs@GOTPCREL(%rip), %r12
LBB0_6:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	*8(%r12)
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movl	%r14d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_copysockopts
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.11:
	movq	_rs@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_8:
	movq	_fd_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_fd_store
	jmp	LBB0_13
LBB0_10:
	movq	_real@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	%r14d, %edi
	callq	*16(%rcx)
	movl	%ebx, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_rsocket,4,2                 ## @fd_rsocket
	.comm	_rs,24,3                        ## @rs
	.comm	_real,24,3                      ## @real
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_fd_ready,4,2                   ## @fd_ready
	.no_dead_strip	_transpose_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transpose_socket
_transpose_socket:                      ; @transpose_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	bl	_fd_getd
	mov	x21, x0
Lloh0:
	adrp	x8, _fd_rsocket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd_rsocket@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x26, _rs@GOTPAGE
Lloh4:
	ldr	x26, [x26, _rs@GOTPAGEOFF]
Lloh5:
	adrp	x27, _real@GOTPAGE
Lloh6:
	ldr	x27, [x27, _real@GOTPAGEOFF]
	cmp	w25, w19
	csel	x22, x27, x26, eq
	csel	x24, x26, x27, eq
	ldr	x8, [x22]
	add	x2, sp, #12
	mov	x1, #0
	blr	x8
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh7:
	adrp	x8, _PF_INET6@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PF_INET6@GOTPAGEOFF]
Lloh9:
	adrp	x9, _PF_INET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PF_INET@GOTPAGEOFF]
	ldr	w10, [sp, #12]
	cmp	w10, #4
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	add	x8, x26, #8
	add	x9, x27, #8
	cmp	w25, w19
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	w2, #0
	blr	x8
	mov	x23, x0
	tbnz	w0, #31, LBB0_1
; %bb.3:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	mov	x3, x22
	bl	_copysockopts
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	add	x8, x26, #16
	add	x9, x27, #16
	cmp	w25, w19
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	mov	x23, x21
	b	LBB0_1
LBB0_5:
Lloh14:
	adrp	x8, _fd_ready@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fd_ready@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_fd_store
	b	LBB0_1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_rsocket,4,2                 ; @fd_rsocket
	.comm	_rs,24,3                        ; @rs
	.comm	_real,24,3                      ; @real
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_fd_ready,4,2                   ; @fd_ready
	.no_dead_strip	_transpose_socket
.subsections_via_symbols
