	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_dma
_validate_dma:                          ## @validate_dma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$-1, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	4(%rsi), %eax
	imull	(%rsi), %eax
	movq	_MCI_FIFOSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_5
## %bb.3:
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_MCI_FIFOSIZE,4,2               ## @MCI_FIFOSIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_dma
_validate_dma:                          ; @validate_dma
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.1:
	ldp	w8, w9, [x1]
	mul	w8, w9, w8
Lloh0:
	adrp	x9, _MCI_FIFOSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCI_FIFOSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_MCI_FIFOSIZE,4,2               ; @MCI_FIFOSIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_dma
.subsections_via_symbols
