	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_dma_phy_valid
_s3c24xx_dma_phy_valid:                 ## @s3c24xx_dma_phy_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %eax
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	16(%rdi), %rcx
	movq	(%rcx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rax
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	_S3C24XX_CHANSEL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	imull	(%rsi), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	movq	_S3C24XX_CHANSEL_VALID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C24XX_CHANSEL_WIDTH,4,2      ## @S3C24XX_CHANSEL_WIDTH
	.comm	_S3C24XX_CHANSEL_VALID,4,2      ## @S3C24XX_CHANSEL_VALID
	.no_dead_strip	_s3c24xx_dma_phy_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_dma_phy_valid
_s3c24xx_dma_phy_valid:                 ; @s3c24xx_dma_phy_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
	ldr	x9, [x9]
	cbz	x9, LBB0_3
LBB0_2:
	mov	w0, #1
	ret
LBB0_3:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _S3C24XX_CHANSEL_WIDTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _S3C24XX_CHANSEL_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w9, w10, w9
	asr	w8, w8, w9
Lloh3:
	adrp	x9, _S3C24XX_CHANSEL_VALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S3C24XX_CHANSEL_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w9
	cset	w0, ne
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C24XX_CHANSEL_WIDTH,4,2      ; @S3C24XX_CHANSEL_WIDTH
	.comm	_S3C24XX_CHANSEL_VALID,4,2      ; @S3C24XX_CHANSEL_VALID
	.no_dead_strip	_s3c24xx_dma_phy_valid
.subsections_via_symbols
