	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp_irq_register               ## -- Begin function mdp_irq_register
	.p2align	4, 0x90
_mdp_irq_register:                      ## @mdp_irq_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.3:
	movq	_list_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	movl	$1, (%rbx)
	addq	$4, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movl	(%r14), %ebx
	movq	_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mdp_irq_update                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_list_lock,4,2                  ## @list_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp_irq_register               ; -- Begin function mdp_irq_register
	.p2align	2
_mdp_irq_register:                      ; @mdp_irq_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _list_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _list_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _list_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_2:
	mov	w8, #1
	str	w8, [x20], #4
	add	x1, x19, #4
	mov	x0, x20
	bl	_list_add
	ldr	w20, [x19]
Lloh4:
	adrp	x0, _list_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _list_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mdp_irq_update
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_list_lock,4,2                  ; @list_lock
.subsections_via_symbols
