	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_request_object_complete  ## -- Begin function media_request_object_complete
	.p2align	4, 0x90
_media_request_object_complete:         ## @media_request_object_complete
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movl	$1, (%rbx)
	xorl	%edi, %edi
	cmpl	$0, 16(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	movq	_MEDIA_REQUEST_STATE_QUEUED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	decl	16(%r14)
	je	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	movq	_MEDIA_REQUEST_STATE_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	12(%r14), %rdi
	callq	_wake_up_interruptible_all
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_media_request_put              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_REQUEST_STATE_QUEUED,8,3 ## @MEDIA_REQUEST_STATE_QUEUED
	.comm	_MEDIA_REQUEST_STATE_COMPLETE,8,3 ## @MEDIA_REQUEST_STATE_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_request_object_complete  ; -- Begin function media_request_object_complete
	.p2align	2
_media_request_object_complete:         ; @media_request_object_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	ldr	x19, [x0, #8]
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #16]
	subs	w8, w8, #1
	str	w8, [x19, #16]
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_5:
Lloh3:
	adrp	x8, _MEDIA_REQUEST_STATE_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEDIA_REQUEST_STATE_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x0, x19
	str	x8, [x0], #12
	bl	_wake_up_interruptible_all
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_media_request_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_REQUEST_STATE_QUEUED,8,3 ; @MEDIA_REQUEST_STATE_QUEUED
	.comm	_MEDIA_REQUEST_STATE_COMPLETE,8,3 ; @MEDIA_REQUEST_STATE_COMPLETE
.subsections_via_symbols
