	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_request
_init_request:                          ## @init_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	12(%rsi), %eax
	movq	_TCODE_STREAM_DATA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %edx
	movl	$512, %esi                      ## imm = 0x200
	movl	%r15d, %ecx
	shll	%cl, %esi
	cmpl	$4096, %edx                     ## imm = 0x1000
	jg	LBB0_3
## %bb.2:
	cmpl	%esi, %edx
	jg	LBB0_3
LBB0_5:
	movq	_TCODE_WRITE_QUADLET_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:
	cmpl	$3, %edi
	jg	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	addl	$32, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r13
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, 24(%rax)
	movl	(%rbx), %eax
	movl	%eax, (%r13)
	movl	24(%rbx), %eax
	movl	%eax, 8(%r13)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	movl	4(%r13), %r14d
	callq	_u64_to_uptr
	movl	(%rbx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_release_transaction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	16(%r13), %rsi
	movl	%eax, 16(%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_add_client_resource
	testl	%eax, %eax
	js	LBB0_14
## %bb.17:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$12, %rsi
	movl	12(%rbx), %edx
	movl	8(%rbx), %r8d
	movl	(%rbx), %r11d
	movl	4(%rbx), %r10d
	movl	4(%r13), %ebx
	movq	_complete_transaction@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	%r13
	pushq	%rax
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_fw_send_request
	addq	$48, %rsp
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %r14d
LBB0_15:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_TCODE_STREAM_DATA,4,2          ## @TCODE_STREAM_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TCODE_WRITE_QUADLET_REQUEST,4,2 ## @TCODE_WRITE_QUADLET_REQUEST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_release_transaction,4,2        ## @release_transaction
	.comm	_complete_transaction,4,2       ## @complete_transaction
	.no_dead_strip	_init_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_request
_init_request:                          ; @init_request
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w8, [x1, #12]
Lloh0:
	adrp	x9, _TCODE_STREAM_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCODE_STREAM_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x21]
	mov	w10, #512
	lsl	w10, w10, w19
	cmp	w9, #1, lsl #12                 ; =4096
	ccmp	w9, w10, #0, le
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh5:
	adrp	x9, _TCODE_WRITE_QUADLET_REQUEST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TCODE_WRITE_QUADLET_REQUEST@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
	ldr	w9, [x21]
	cmp	w8, w10
	ccmp	w9, #3, #0, eq
	b.le	LBB0_8
; %bb.4:
	add	w0, w9, #32
Lloh8:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	str	x22, [x0, #24]
	ldr	w8, [x21]
	str	w8, [x0]
	ldr	w8, [x21, #24]
	str	w8, [x0, #8]
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w24, [x23, #4]
	bl	_u64_to_uptr
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x24
	bl	_copy_from_user
	cbz	x0, LBB0_12
; %bb.7:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	mov	x0, x24
	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
LBB0_12:
Lloh17:
	adrp	x8, _release_transaction@GOTPAGE
Lloh18:
	ldr	x8, [x8, _release_transaction@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	x1, x23
	str	w8, [x1, #16]!
	ldr	w2, [x25]
	mov	x0, x22
	bl	_add_client_resource
	tbnz	w0, #31, LBB0_14
; %bb.13:
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x1, x23, #12
	ldp	w4, w2, [x21, #8]
	ldr	w7, [x23, #4]
	ldp	w8, w6, [x21]
Lloh20:
	adrp	x9, _complete_transaction@GOTPAGE
Lloh21:
	ldr	x9, [x9, _complete_transaction@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	x23, [sp, #8]
	stp	w8, w9, [sp]
	mov	x3, x20
	mov	x5, x19
	bl	_fw_send_request
	mov	w24, #0
	b	LBB0_11
LBB0_14:
	mov	x24, x0
LBB0_15:
	mov	x0, x23
	bl	_kfree
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TCODE_STREAM_DATA,4,2          ; @TCODE_STREAM_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TCODE_WRITE_QUADLET_REQUEST,4,2 ; @TCODE_WRITE_QUADLET_REQUEST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_release_transaction,4,2        ; @release_transaction
	.comm	_complete_transaction,4,2       ; @complete_transaction
	.no_dead_strip	_init_request
.subsections_via_symbols
