	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_flags
_dma_flags:                             ## @dma_flags
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %edx
	movq	_IORESOURCE_DMA_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leal	-128(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_IORESOURCE_DMA_TYPEF@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_IORESOURCE_DMA_TYPEB@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_IORESOURCE_DMA_TYPEA@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_IORESOURCE_DMA_COMPATIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%rdi, %r12
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	%r12, %rdi
	cmpl	$131, %r15d
	jne	LBB0_6
LBB0_13:
	movq	_IORESOURCE_DMA_8AND16BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_IORESOURCE_DMA_COMPATIBLE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
	cmpl	$131, %r15d
	je	LBB0_13
LBB0_6:
	cmpl	$133, %r15d
	je	LBB0_9
## %bb.7:
	cmpl	$132, %r15d
	jne	LBB0_10
## %bb.8:
	movq	_IORESOURCE_DMA_8BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_IORESOURCE_DMA_16BIT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r12d
	jmp	LBB0_15
LBB0_10:
	movq	_IORESOURCE_DMA_8AND16BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_15:
	testl	%r14d, %r14d
	cmovel	%r14d, %r13d
	orl	%r13d, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_IORESOURCE_DMA_MASTER,4,2      ## @IORESOURCE_DMA_MASTER
	.comm	_IORESOURCE_DMA_COMPATIBLE,4,2  ## @IORESOURCE_DMA_COMPATIBLE
	.comm	_IORESOURCE_DMA_TYPEA,4,2       ## @IORESOURCE_DMA_TYPEA
	.comm	_IORESOURCE_DMA_TYPEB,4,2       ## @IORESOURCE_DMA_TYPEB
	.comm	_IORESOURCE_DMA_TYPEF,4,2       ## @IORESOURCE_DMA_TYPEF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid DMA type %d\n"

	.comm	_IORESOURCE_DMA_8BIT,4,2        ## @IORESOURCE_DMA_8BIT
	.comm	_IORESOURCE_DMA_8AND16BIT,4,2   ## @IORESOURCE_DMA_8AND16BIT
	.comm	_IORESOURCE_DMA_16BIT,4,2       ## @IORESOURCE_DMA_16BIT
L_.str.1:                               ## @.str.1
	.asciz	"invalid DMA transfer type %d\n"

	.no_dead_strip	_dma_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_flags
_dma_flags:                             ; @dma_flags
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x2, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IORESOURCE_DMA_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_DMA_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _IORESOURCE_DMA_TYPEF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_DMA_TYPEF@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh7:
	adrp	x8, _IORESOURCE_DMA_TYPEB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IORESOURCE_DMA_TYPEB@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _IORESOURCE_DMA_TYPEA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORESOURCE_DMA_TYPEA@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _IORESOURCE_DMA_COMPATIBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_DMA_COMPATIBLE@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	cmp	w20, #131
	b.ne	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _IORESOURCE_DMA_8AND16BIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IORESOURCE_DMA_8AND16BIT@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh18:
	adrp	x8, _IORESOURCE_DMA_COMPATIBLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IORESOURCE_DMA_COMPATIBLE@GOTPAGEOFF]
LBB0_8:
	ldr	w23, [x8]
	cmp	w20, #131
	b.eq	LBB0_6
LBB0_9:
	cmp	w20, #133
	b.eq	LBB0_12
; %bb.10:
	cmp	w20, #132
	b.ne	LBB0_14
; %bb.11:
Lloh20:
	adrp	x8, _IORESOURCE_DMA_8BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IORESOURCE_DMA_8BIT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _IORESOURCE_DMA_16BIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IORESOURCE_DMA_16BIT@GOTPAGEOFF]
LBB0_13:
	ldr	w24, [x8]
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x8, _IORESOURCE_DMA_8AND16BIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IORESOURCE_DMA_8AND16BIT@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
LBB0_15:
	cmp	w19, #0
	csel	w8, wzr, w22, eq
	orr	w8, w23, w8
	orr	w0, w8, w24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_IORESOURCE_DMA_MASTER,4,2      ; @IORESOURCE_DMA_MASTER
	.comm	_IORESOURCE_DMA_COMPATIBLE,4,2  ; @IORESOURCE_DMA_COMPATIBLE
	.comm	_IORESOURCE_DMA_TYPEA,4,2       ; @IORESOURCE_DMA_TYPEA
	.comm	_IORESOURCE_DMA_TYPEB,4,2       ; @IORESOURCE_DMA_TYPEB
	.comm	_IORESOURCE_DMA_TYPEF,4,2       ; @IORESOURCE_DMA_TYPEF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid DMA type %d\n"

	.comm	_IORESOURCE_DMA_8BIT,4,2        ; @IORESOURCE_DMA_8BIT
	.comm	_IORESOURCE_DMA_8AND16BIT,4,2   ; @IORESOURCE_DMA_8AND16BIT
	.comm	_IORESOURCE_DMA_16BIT,4,2       ; @IORESOURCE_DMA_16BIT
l_.str.1:                               ; @.str.1
	.asciz	"invalid DMA transfer type %d\n"

	.no_dead_strip	_dma_flags
.subsections_via_symbols
