	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_dev_recv                    ## -- Begin function ub_dev_recv
	.p2align	4, 0x90
_ub_dev_recv:                           ## @ub_dev_recv
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	%edx, -36(%rbp)
	movl	$0, -28(%rbp)
	callq	_dev_net_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_devices@GOTPCREL(%rip), %rax
	movslq	%ebx, %rdx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	movq	_API_DEV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rbx
	leaq	-36(%rbp), %r8
	leaq	-32(%rbp), %r9
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_syscall
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$0, -28(%rbp)
	jne	LBB0_6
## %bb.5:
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_API_ENODEV@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_3:
	movq	_API_ESYSC@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_API_ENODEV,4,2                 ## @API_ENODEV
	.comm	_devices,8,3                    ## @devices
	.comm	_API_DEV_READ,4,2               ## @API_DEV_READ
	.comm	_API_ESYSC,4,2                  ## @API_ESYSC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_dev_recv                    ; -- Begin function ub_dev_recv
	.p2align	2
_ub_dev_recv:                           ; @ub_dev_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	stp	wzr, w2, [sp, #8]
	bl	_dev_net_valid
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _devices@GOTPAGE
Lloh1:
	ldr	x8, [x8, _devices@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x2, x8, w21, sxtw #2
Lloh3:
	adrp	x8, _API_DEV_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _API_DEV_READ@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	add	x4, sp, #12
	add	x5, sp, #4
	mov	x3, x20
	bl	_syscall
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w8, [sp, #4]
	str	w8, [x19]
LBB0_4:
	add	x8, sp, #8
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _API_ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _API_ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _API_ESYSC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _API_ESYSC@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_API_ENODEV,4,2                 ; @API_ENODEV
	.comm	_devices,8,3                    ; @devices
	.comm	_API_DEV_READ,4,2               ; @API_DEV_READ
	.comm	_API_ESYSC,4,2                  ; @API_ESYSC
.subsections_via_symbols
