	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x25_recvmsg
_x25_recvmsg:                           ## @x25_recvmsg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_x25_sk
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	(%r15), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.1:
	movl	$0, (%r14)
	movq	_MSG_OOB@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_7
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	_SOCK_URGINLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_21
## %bb.3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_skb_peek
	testl	%eax, %eax
	je	LBB0_21
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_dequeue
	movq	%rax, %r13
	movq	_X25_STD_MIN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skb_push
	movb	$0, (%rax)
LBB0_6:
	movl	(%r12), %eax
	orl	%eax, 4(%r14)
	jmp	LBB0_13
LBB0_7:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%ebx, %esi
	andl	%ebx, %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	callq	_skb_recv_datagram
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_X25_Q_BIT@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_9
## %bb.10:
	movq	_X25_STD_MIN_LEN@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_9:
	movq	_X25_EXT_MIN_LEN@GOTPCREL(%rip), %rdx
LBB0_11:
	movl	(%rax), %ebx
	movl	(%rcx), %r12d
	movl	(%rdx), %esi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:
	notl	%ebx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skb_push
	testl	%ebx, %r12d
	sete	(%rax)
LBB0_13:
	movq	%r13, %rdi
	callq	_skb_reset_transport_header
	movq	8(%r13), %r12
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r12
	jbe	LBB0_14
## %bb.15:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rcx
	movl	4(%r14), %eax
	orl	(%rcx), %eax
	movq	%rdx, %r12
	jmp	LBB0_16
LBB0_14:
	movl	4(%r14), %eax
LBB0_16:
	movq	_MSG_EOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r14)
	movl	8(%r14), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	movq	_AF_X25@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movl	$8, (%r14)
LBB0_19:
	movq	%r15, %rdi
	callq	_lock_sock
	movq	%r15, %rdi
	callq	_x25_check_rbuf
	movq	%r15, %rdi
	callq	_release_sock
	movl	%r12d, -44(%rbp)
LBB0_20:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_skb_free_datagram
LBB0_21:
	movl	-44(%rbp), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCK_URGINLINE,4,2             ## @SOCK_URGINLINE
	.comm	_X25_STD_MIN_LEN,4,2            ## @X25_STD_MIN_LEN
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_X25_Q_BIT,4,2                  ## @X25_Q_BIT
	.comm	_X25_EXT_MIN_LEN,4,2            ## @X25_EXT_MIN_LEN
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_MSG_EOR,4,2                    ## @MSG_EOR
	.comm	_AF_X25,4,2                     ## @AF_X25
	.no_dead_strip	_x25_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x25_recvmsg
_x25_recvmsg:                           ; @x25_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	ldr	x19, [x1]
	mov	x0, x19
	bl	_x25_sk
	ldr	x24, [x21, #16]
Lloh0:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.1:
	mov	x22, x0
	str	wzr, [x21]
Lloh6:
	adrp	x25, _MSG_OOB@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MSG_OOB@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
Lloh11:
	adrp	x8, _SOCK_URGINLINE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_URGINLINE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_18
; %bb.3:
	add	x23, x22, #24
	mov	x0, x23
	bl	_skb_peek
	cbz	w0, LBB0_18
; %bb.4:
	mov	x0, x23
	bl	_skb_dequeue
	mov	x23, x0
Lloh14:
	adrp	x8, _X25_STD_MIN_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _X25_STD_MIN_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_skb_pull
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x23
	mov	w1, #1
	bl	_skb_push
	strb	wzr, [x0]
LBB0_6:
	ldr	w8, [x25]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w1, w23, w8
	and	w2, w8, w23
	add	x3, sp, #12
	mov	x0, x19
	bl	_skb_recv_datagram
	cbz	x0, LBB0_18
; %bb.8:
	mov	x23, x0
	ldr	x8, [x0]
	ldr	w25, [x8]
Lloh20:
	adrp	x8, _X25_Q_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _X25_Q_BIT@GOTPAGEOFF]
Lloh22:
	ldr	w26, [x8]
	ldr	x8, [x22, #16]
Lloh23:
	adrp	x9, _X25_EXT_MIN_LEN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _X25_EXT_MIN_LEN@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh25:
	adrp	x10, _X25_STD_MIN_LEN@GOTPAGE
Lloh26:
	ldr	x10, [x10, _X25_STD_MIN_LEN@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	bl	_skb_pull
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.9:
	bics	wzr, w26, w25
	cset	w25, eq
	mov	x0, x23
	mov	w1, #1
	bl	_skb_push
	strb	w25, [x0]
LBB0_10:
	mov	x0, x23
	bl	_skb_reset_transport_header
	ldr	x9, [x23, #8]
	cmp	x9, x20
	b.ls	LBB0_12
; %bb.11:
Lloh27:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_13
LBB0_12:
	ldr	w8, [x21, #4]
	mov	x20, x9
LBB0_13:
Lloh30:
	adrp	x9, _MSG_EOR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MSG_EOR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21, #4]
	ldr	w2, [x21, #8]
	mov	x0, x23
	mov	w1, #0
	mov	x3, x20
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #12]
	cbnz	w0, LBB0_17
; %bb.14:
	cbz	x24, LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _AF_X25@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AF_X25@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x22]
	stp	w9, w8, [x24]
	mov	w8, #8
	str	w8, [x21]
LBB0_16:
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x19
	bl	_x25_check_rbuf
	mov	x0, x19
	bl	_release_sock
	str	w20, [sp, #12]
LBB0_17:
	mov	x0, x19
	mov	x1, x23
	bl	_skb_free_datagram
LBB0_18:
	ldr	w0, [sp, #12]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCK_URGINLINE,4,2             ; @SOCK_URGINLINE
	.comm	_X25_STD_MIN_LEN,4,2            ; @X25_STD_MIN_LEN
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_X25_Q_BIT,4,2                  ; @X25_Q_BIT
	.comm	_X25_EXT_MIN_LEN,4,2            ; @X25_EXT_MIN_LEN
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_MSG_EOR,4,2                    ; @MSG_EOR
	.comm	_AF_X25,4,2                     ; @AF_X25
	.no_dead_strip	_x25_recvmsg
.subsections_via_symbols
