	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_rcvoob
_sdp_rcvoob:                            ## @sdp_rcvoob
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_sdp_sk
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_SDP_WLOCK
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_rx_ring_trylock
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_SDP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_SDP_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_4:
	cmpq	$0, (%r13)
	jne	LBB0_6
## %bb.5:
	movq	_SBS_RCVATMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r13)
	je	LBB0_8
LBB0_6:
	movq	_SO_OOBINLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_8
## %bb.7:
	movl	4(%r14), %eax
	movq	_SDP_HADOOB@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r12d
LBB0_10:
	movq	%rbx, %rdi
	callq	_rx_ring_unlock
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SDP_HAVEOOB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movl	$1, (%r12)
	movl	12(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_caddr_t@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mtod
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%r15d, (%rax)
	jne	LBB0_10
## %bb.14:
	movl	(%r13), %eax
	movq	_SDP_HAVEOOB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%eax, 4(%r14)
	jmp	LBB0_10
LBB0_15:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_SDP_TIMEWAIT,4,2               ## @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ## @SDP_DROPPED
	.comm	_SBS_RCVATMARK,4,2              ## @SBS_RCVATMARK
	.comm	_SO_OOBINLINE,4,2               ## @SO_OOBINLINE
	.comm	_SDP_HADOOB,4,2                 ## @SDP_HADOOB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SDP_HAVEOOB,4,2                ## @SDP_HAVEOOB
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_caddr_t,4,2                    ## @caddr_t
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.no_dead_strip	_sdp_rcvoob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_rcvoob
_sdp_rcvoob:                            ; @sdp_rcvoob
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x22, x1
	mov	x23, x0
	bl	_sdp_sk
	mov	x19, x0
	bl	_SDP_WLOCK
	add	x20, x19, #8
	mov	x0, x20
	bl	_rx_ring_trylock
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDP_TIMEWAIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDP_TIMEWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SDP_DROPPED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SDP_DROPPED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_SDP_WUNLOCK
Lloh8:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_4:
	ldr	x8, [x23]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x23, #12]
Lloh11:
	adrp	x9, _SBS_RCVATMARK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SBS_RCVATMARK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_6:
	ldr	w8, [x23, #8]
Lloh14:
	adrp	x9, _SO_OOBINLINE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SO_OOBINLINE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19, #4]
Lloh17:
	adrp	x23, _SDP_HADOOB@GOTPAGE
Lloh18:
	ldr	x23, [x23, _SDP_HADOOB@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_8:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
LBB0_10:
	mov	x0, x20
	bl	_rx_ring_unlock
	mov	x0, x19
	bl	_SDP_WUNLOCK
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh21:
	adrp	x24, _SDP_HAVEOOB@GOTPAGE
Lloh22:
	ldr	x24, [x24, _SDP_HAVEOOB@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:
	mov	w8, #1
	str	w8, [x22]
	ldr	w25, [x19, #12]
Lloh23:
	adrp	x8, _caddr_t@GOTPAGE
Lloh24:
	ldr	x8, [x8, _caddr_t@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mtod
	str	w25, [x0]
Lloh26:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.14:
	mov	w21, #0
	b	LBB0_10
LBB0_15:
Lloh29:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	mov	w21, #0
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	eor	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_SDP_TIMEWAIT,4,2               ; @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ; @SDP_DROPPED
	.comm	_SBS_RCVATMARK,4,2              ; @SBS_RCVATMARK
	.comm	_SO_OOBINLINE,4,2               ; @SO_OOBINLINE
	.comm	_SDP_HADOOB,4,2                 ; @SDP_HADOOB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SDP_HAVEOOB,4,2                ; @SDP_HAVEOOB
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_caddr_t,4,2                    ; @caddr_t
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.no_dead_strip	_sdp_rcvoob
.subsections_via_symbols
