	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_irq_registration_params
_validate_irq_registration_params:      ## @validate_irq_registration_params
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	_INTERRUPT_CONTEXT_NUMBER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_4
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_DAL_VALID_IRQ_SRC_NUM
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DM_IRQ: invalid input!\n"

	.comm	_INTERRUPT_CONTEXT_NUMBER,8,3   ## @INTERRUPT_CONTEXT_NUMBER
L_.str.1:                               ## @.str.1
	.asciz	"DM_IRQ: invalid context: %d!\n"

L_.str.2:                               ## @.str.2
	.asciz	"DM_IRQ: invalid irq_source: %d!\n"

	.no_dead_strip	_validate_irq_registration_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_irq_registration_params
_validate_irq_registration_params:      ; @validate_irq_registration_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INTERRUPT_CONTEXT_NUMBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTERRUPT_CONTEXT_NUMBER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_DAL_VALID_IRQ_SRC_NUM
	cbz	w0, LBB0_7
; %bb.4:
	mov	w0, #1
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_DRM_ERROR
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DM_IRQ: invalid input!\n"

	.comm	_INTERRUPT_CONTEXT_NUMBER,8,3   ; @INTERRUPT_CONTEXT_NUMBER
l_.str.1:                               ; @.str.1
	.asciz	"DM_IRQ: invalid context: %d!\n"

l_.str.2:                               ; @.str.2
	.asciz	"DM_IRQ: invalid irq_source: %d!\n"

	.no_dead_strip	_validate_irq_registration_params
.subsections_via_symbols
