	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_request_alloc            ## -- Begin function media_request_alloc
	.p2align	4, 0x90
_media_request_alloc:                   ## @media_request_alloc
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	sete	%cl
	cmpl	$0, 8(%rax)
	movq	%rsi, %r12
	sete	%al
	xorb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_O_CLOEXEC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_get_unused_fd_flags
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	movq	_request_fops@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	callq	_anon_inode_getfile
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_10:
	movl	%ebx, %edi
	callq	_put_unused_fd
	movl	%r14d, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	*%rax
	jmp	LBB0_8
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
LBB0_8:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%r13, (%r15)
	movq	%r14, 56(%r13)
	movq	_MEDIA_REQUEST_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	$0, 40(%r13)
	leaq	36(%r13), %rdi
	callq	_kref_init
	leaq	32(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%r13), %rdi
	callq	_spin_lock_init
	leaq	24(%r13), %rdi
	callq	_init_waitqueue_head
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	movl	%ebx, (%r12)
	movl	(%r13), %r12d
	leaq	4(%r14), %rdi
	callq	_atomic_inc_return
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movl	%eax, %ecx
	movl	%ebx, %r8d
	callq	_snprintf
	movl	(%r14), %edi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_fd_install
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_fput
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request"

	.comm	_request_fops,4,2               ## @request_fops
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MEDIA_REQUEST_STATE_IDLE,4,2   ## @MEDIA_REQUEST_STATE_IDLE
L_.str.1:                               ## @.str.1
	.asciz	"%u:%d"

L_.str.2:                               ## @.str.2
	.asciz	"request: allocated %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_request_alloc            ; -- Begin function media_request_alloc
	.p2align	2
_media_request_alloc:                   ; @media_request_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cmp	x9, #0
	cset	w9, eq
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w8, eq
	eor	w0, w9, w8
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_2:
Lloh3:
	adrp	x22, _O_CLOEXEC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _O_CLOEXEC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_get_unused_fd_flags
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w3, [x22]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
Lloh7:
	adrp	x1, _request_fops@GOTPAGE
Lloh8:
	ldr	x1, [x1, _request_fops@GOTPAGEOFF]
	mov	x2, #0
	bl	_anon_inode_getfile
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_put_unused_fd
	mov	x19, x20
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x0, x20
	blr	x8
	mov	x23, x0
	cbz	x0, LBB0_11
LBB0_8:
	str	x23, [x22]
	str	x20, [x23, #56]
Lloh9:
	adrp	x8, _MEDIA_REQUEST_STATE_IDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_REQUEST_STATE_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x23, #48]
	str	xzr, [x23, #40]
	add	x0, x23, #36
	bl	_kref_init
	add	x0, x23, #32
	bl	_INIT_LIST_HEAD
	add	x0, x23, #28
	bl	_spin_lock_init
	add	x0, x23, #24
	bl	_init_waitqueue_head
	stp	xzr, xzr, [x23, #8]
	str	w19, [x21]
	ldr	w21, [x23]
	add	x0, x20, #4
	bl	_atomic_inc_return
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	mov	x4, x19
	bl	_snprintf
	ldr	w0, [x20]
	ldr	w2, [x23]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x22
	bl	_fd_install
	mov	w19, #0
LBB0_9:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	mov	x23, x0
	cbnz	x0, LBB0_8
LBB0_11:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x22
	bl	_fput
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request"

	.comm	_request_fops,4,2               ; @request_fops
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MEDIA_REQUEST_STATE_IDLE,4,2   ; @MEDIA_REQUEST_STATE_IDLE
l_.str.1:                               ; @.str.1
	.asciz	"%u:%d"

l_.str.2:                               ; @.str.2
	.asciz	"request: allocated %s\n"

.subsections_via_symbols
