	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_request
_generic_request:                       ## @generic_request
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%esi, %ebx
	leal	-1(%rbx), %eax
	movl	(%rdi), %ecx
	movzbl	%al, %eax
	btl	%eax, %ecx
	jae	LBB0_1
## %bb.3:
	leal	-128(%rbx), %eax
	cmpl	$10, %eax
	ja	LBB0_5
## %bb.4:
	movq	%rdi, %r13
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	xorl	%r15d, %r15d
	jmpq	*%rax
LBB0_6:
	movq	_LDC_MAP_W@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_LDC_MAP_R@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movl	$8, %r15d
LBB0_10:
	movq	_LDC_MAP_SHADOW@GOTPCREL(%rip), %rax
	movq	_LDC_MAP_DIRECT@GOTPCREL(%rip), %rcx
	movq	_LDC_MAP_IO@GOTPCREL(%rip), %rdx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	orl	(%rdx), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %r15d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	cmovll	%r15d, %r14d
	movq	_LDC_MAP_R@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
LBB0_14:
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	leaq	8(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_VIO_DRIVER_TX_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	32(%r13), %rbx
	movq	%rbx, %rdi
	callq	_vio_dring_cur
	movq	%rax, %r15
	movl	52(%rax), %ecx
	movl	24(%r13), %edi
	movl	44(%r13), %r8d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_ldc_map_single
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	leaq	-84(%rbp), %rdi
	callq	_init_completion
	movq	_WAITING_FOR_GEN_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, 16(%r13)
	movq	_VIO_ACK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	40(%r13), %eax
	movl	%eax, 48(%r15)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r15)
	movq	$0, 40(%r15)
	movl	$-1, 32(%r15)
	movq	$0, 24(%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	movl	%r14d, 8(%r15)
	xorl	%eax, %eax
	callq	_wmb
	movq	_VIO_DESC_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%r13, %rdi
	callq	___vdc_tx_trigger
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	incl	40(%r13)
	movl	(%rbx), %eax
	incl	%eax
	movq	_VDC_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	leaq	-84(%rbp), %rdi
	callq	_wait_for_completion
	movl	-88(%rbp), %r14d
	jmp	LBB0_19
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_18:
	movl	%eax, %r14d
	movq	$0, 16(%r13)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_19:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_LDC_MAP_W@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
LBB0_21:
	movq	%rbx, %rdi
LBB0_22:
	callq	_kfree
	jmp	LBB0_23
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_LDC_MAP_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$16, %r15d
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_1
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_1
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LDC_MAP_W,4,2                  ## @LDC_MAP_W
	.comm	_LDC_MAP_R,4,2                  ## @LDC_MAP_R
	.comm	_LDC_MAP_RW,4,2                 ## @LDC_MAP_RW
	.comm	_LDC_MAP_SHADOW,4,2             ## @LDC_MAP_SHADOW
	.comm	_LDC_MAP_DIRECT,4,2             ## @LDC_MAP_DIRECT
	.comm	_LDC_MAP_IO,4,2                 ## @LDC_MAP_IO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VIO_DRIVER_TX_RING,8,3         ## @VIO_DRIVER_TX_RING
	.comm	_WAITING_FOR_GEN_CMD,4,2        ## @WAITING_FOR_GEN_CMD
	.comm	_VIO_ACK_ENABLE,4,2             ## @VIO_ACK_ENABLE
	.comm	_VIO_DESC_READY,4,2             ## @VIO_DESC_READY
	.comm	_VDC_TX_RING_SIZE,4,2           ## @VDC_TX_RING_SIZE
	.no_dead_strip	_generic_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_request
_generic_request:                       ; @generic_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	sub	w8, w1, #1
	ldr	w9, [x0]
	lsr	w8, w9, w8
	tbz	w8, #0, LBB0_4
; %bb.1:
	mov	x21, x1
	sub	w8, w1, #128
	cmp	w8, #10
	b.hi	LBB0_19
; %bb.2:
	mov	x24, x3
	mov	x28, x2
	mov	x20, x0
	mov	w19, #0
	mov	w22, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _LDC_MAP_W@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDC_MAP_W@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_20
LBB0_5:
Lloh6:
	adrp	x8, _LDC_MAP_R@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDC_MAP_R@GOTPAGEOFF]
LBB0_6:
	ldr	w19, [x8]
	mov	w22, #8
LBB0_7:
Lloh8:
	adrp	x8, _LDC_MAP_SHADOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDC_MAP_SHADOW@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
Lloh11:
	adrp	x8, _LDC_MAP_DIRECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDC_MAP_DIRECT@GOTPAGEOFF]
Lloh13:
	ldr	w26, [x8]
Lloh14:
	adrp	x8, _LDC_MAP_IO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDC_MAP_IO@GOTPAGEOFF]
Lloh16:
	ldr	w27, [x8]
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.8:
	mov	x23, x0
	orr	w8, w25, w19
	orr	w8, w8, w26
	orr	w25, w8, w27
	cmp	w22, w24
	csel	w24, w22, w24, lt
Lloh20:
	adrp	x8, _LDC_MAP_R@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDC_MAP_R@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x23
	mov	x1, x28
	mov	x2, x24
	bl	_memcpy
LBB0_10:
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
	add	x27, x20, #8
	mov	x0, x27
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #32]
Lloh23:
	adrp	x9, _VIO_DRIVER_TX_RING@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VIO_DRIVER_TX_RING@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x28, x8, x9, lsl #2
	mov	x0, x28
	bl	_vio_dring_cur
	mov	x19, x0
	ldr	w0, [x20, #24]
	ldr	w3, [x19, #52]
	ldr	w4, [x20, #44]
	mov	x1, x23
	mov	x2, x22
	mov	x5, x25
	bl	_ldc_map_single
	mov	x26, x0
	tbnz	w0, #31, LBB0_14
; %bb.11:
	str	w24, [sp, #20]                  ; 4-byte Folded Spill
	add	x24, sp, #32
	orr	x0, x24, #0x4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_init_completion
Lloh26:
	adrp	x8, _WAITING_FOR_GEN_CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WAITING_FOR_GEN_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh29:
	adrp	x8, _VIO_ACK_ENABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VIO_ACK_ENABLE@GOTPAGEOFF]
	str	x24, [x20, #16]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x20, #40]
	str	w8, [x19, #48]
	str	xzr, [x19, #40]
	mov	w8, #-1
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	stp	w21, w22, [x19]
	str	w26, [x19, #8]
	bl	_wmb
Lloh32:
	adrp	x8, _VIO_DESC_READY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VIO_DESC_READY@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x20
	bl	___vdc_tx_trigger
	tbnz	w0, #31, LBB0_15
; %bb.12:
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
	ldr	w8, [x28]
	add	w8, w8, #1
Lloh35:
	adrp	x9, _VDC_TX_RING_SIZE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VDC_TX_RING_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x28]
	mov	x0, x27
	bl	_spin_unlock_irqrestore
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_wait_for_completion
	ldr	w26, [sp, #32]
	b	LBB0_16
LBB0_13:
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
	mov	x0, x27
	bl	_spin_unlock_irqrestore
	b	LBB0_18
LBB0_15:
	mov	x26, x0
	str	xzr, [x20, #16]
	mov	x0, x27
	bl	_spin_unlock_irqrestore
LBB0_16:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
Lloh40:
	adrp	x8, _LDC_MAP_W@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LDC_MAP_W@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_18
; %bb.17:
	mov	x1, x23
	bl	_memcpy
LBB0_18:
	mov	x0, x23
	bl	_kfree
	b	LBB0_21
LBB0_19:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_21:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_22:
Lloh45:
	adrp	x8, _LDC_MAP_RW@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LDC_MAP_RW@GOTPAGEOFF]
Lloh47:
	ldr	w19, [x8]
	mov	w22, #16
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LDC_MAP_W,4,2                  ; @LDC_MAP_W
	.comm	_LDC_MAP_R,4,2                  ; @LDC_MAP_R
	.comm	_LDC_MAP_RW,4,2                 ; @LDC_MAP_RW
	.comm	_LDC_MAP_SHADOW,4,2             ; @LDC_MAP_SHADOW
	.comm	_LDC_MAP_DIRECT,4,2             ; @LDC_MAP_DIRECT
	.comm	_LDC_MAP_IO,4,2                 ; @LDC_MAP_IO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VIO_DRIVER_TX_RING,8,3         ; @VIO_DRIVER_TX_RING
	.comm	_WAITING_FOR_GEN_CMD,4,2        ; @WAITING_FOR_GEN_CMD
	.comm	_VIO_ACK_ENABLE,4,2             ; @VIO_ACK_ENABLE
	.comm	_VIO_DESC_READY,4,2             ; @VIO_DESC_READY
	.comm	_VDC_TX_RING_SIZE,4,2           ; @VDC_TX_RING_SIZE
	.no_dead_strip	_generic_request
.subsections_via_symbols
