	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_request_object_unbind    ## -- Begin function media_request_object_unbind
	.p2align	4, 0x90
_media_request_object_unbind:           ## @media_request_object_unbind
	.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, %rbx
	movq	16(%rdi), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	24(%rbx), %rdi
	callq	_list_del
	movq	$0, 16(%rbx)
	movq	(%r14), %rax
	movq	_MEDIA_REQUEST_STATE_COMPLETE@GOTPCREL(%rip), %r13
	movb	$1, %r12b
	cmpq	(%r13), %rax
	je	LBB0_10
## %bb.2:
	movq	_MEDIA_REQUEST_STATE_VALIDATING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_12:
	testb	%r12b, %r12b
	je	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_media_request_put              ## TAILCALL
LBB0_3:
	movq	(%r14), %rax
	movq	_MEDIA_REQUEST_STATE_CLEANING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_10
## %bb.5:
	decl	16(%r14)
	jmp	LBB0_10
LBB0_6:
	xorl	%edi, %edi
	cmpl	$0, 16(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movl	16(%r14), %eax
	decl	%eax
	movl	%eax, 16(%r14)
	movq	(%r14), %rcx
	movq	_MEDIA_REQUEST_STATE_QUEUED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%r13), %rax
	movq	%rax, (%r14)
	leaq	12(%r14), %rdi
	callq	_wake_up_interruptible_all
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_REQUEST_STATE_COMPLETE,8,3 ## @MEDIA_REQUEST_STATE_COMPLETE
	.comm	_MEDIA_REQUEST_STATE_VALIDATING,8,3 ## @MEDIA_REQUEST_STATE_VALIDATING
	.comm	_MEDIA_REQUEST_STATE_CLEANING,8,3 ## @MEDIA_REQUEST_STATE_CLEANING
	.comm	_MEDIA_REQUEST_STATE_QUEUED,8,3 ## @MEDIA_REQUEST_STATE_QUEUED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_request_object_unbind    ; -- Begin function media_request_object_unbind
	.p2align	2
_media_request_object_unbind:           ; @media_request_object_unbind
	.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	x20, x0
	ldr	x19, [x0, #16]
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x20, #24
	bl	_list_del
	str	xzr, [x20, #16]
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _MEDIA_REQUEST_STATE_COMPLETE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MEDIA_REQUEST_STATE_COMPLETE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _MEDIA_REQUEST_STATE_VALIDATING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEDIA_REQUEST_STATE_VALIDATING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_9
LBB0_3:
	mov	w22, #1
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	blr	x8
LBB0_6:
	tbz	w22, #0, LBB0_8
LBB0_7:
	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
	ret
LBB0_8:
	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
LBB0_9:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _MEDIA_REQUEST_STATE_CLEANING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEDIA_REQUEST_STATE_CLEANING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_3
; %bb.11:
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_12:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.13:
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x9, [x19]
Lloh8:
	adrp	x10, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_3
; %bb.14:
	ldr	x8, [x22]
	mov	x0, x19
	str	x8, [x0], #12
	bl	_wake_up_interruptible_all
	mov	w22, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_REQUEST_STATE_COMPLETE,8,3 ; @MEDIA_REQUEST_STATE_COMPLETE
	.comm	_MEDIA_REQUEST_STATE_VALIDATING,8,3 ; @MEDIA_REQUEST_STATE_VALIDATING
	.comm	_MEDIA_REQUEST_STATE_CLEANING,8,3 ; @MEDIA_REQUEST_STATE_CLEANING
	.comm	_MEDIA_REQUEST_STATE_QUEUED,8,3 ; @MEDIA_REQUEST_STATE_QUEUED
.subsections_via_symbols
