	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch_set_dmamode
_sch_set_dmamode:                       ## @sch_set_dmamode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %r15d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	cmpq	$0, 8(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_D0TIM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_D1TIM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_read_config_dword
	movq	_XFER_UDMA_0@GOTPCREL(%rip), %rcx
	movl	%r15d, %edx
	movq	_USD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	(%rcx), %edx
	jae	LBB0_4
## %bb.5:
	movq	_MDM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movq	_XFER_MW_DMA_0@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r15d
	shll	$8, %r15d
	movl	%eax, %edx
	jmp	LBB0_6
LBB0_4:
	orl	-28(%rbp), %eax
	movq	_UDM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	%eax, %r15d
	shll	$16, %edx
LBB0_6:
	orl	%r15d, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_write_config_dword
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D1TIM,4,2                      ## @D1TIM
	.comm	_D0TIM,4,2                      ## @D0TIM
	.comm	_XFER_UDMA_0,4,2                ## @XFER_UDMA_0
	.comm	_USD,4,2                        ## @USD
	.comm	_UDM,4,2                        ## @UDM
	.comm	_MDM,4,2                        ## @MDM
	.comm	_XFER_MW_DMA_0,4,2              ## @XFER_MW_DMA_0
	.no_dead_strip	_sch_set_dmamode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch_set_dmamode
_sch_set_dmamode:                       ; @sch_set_dmamode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	w21, [x1]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_pci_dev
	mov	x19, x0
Lloh0:
	adrp	x8, _D1TIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D1TIM@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh2:
	adrp	x10, _D0TIM@GOTPAGE
Lloh3:
	ldr	x10, [x10, _D0TIM@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w20, [x8]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_dword
Lloh4:
	adrp	x8, _XFER_UDMA_0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XFER_UDMA_0@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _USD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	subs	w8, w21, w8
	b.hs	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _MDM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MDM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh13:
	adrp	x9, _XFER_MW_DMA_0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XFER_MW_DMA_0@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	sub	w9, w21, w9
	lsl	w9, w9, #8
	b	LBB0_3
LBB0_2:
	ldr	w10, [sp, #12]
	orr	w9, w10, w9
Lloh16:
	adrp	x10, _UDM@GOTPAGE
Lloh17:
	ldr	x10, [x10, _UDM@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	bic	w9, w9, w10
	lsl	w8, w8, #16
LBB0_3:
	orr	w2, w9, w8
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_write_config_dword
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_D1TIM,4,2                      ; @D1TIM
	.comm	_D0TIM,4,2                      ; @D0TIM
	.comm	_XFER_UDMA_0,4,2                ; @XFER_UDMA_0
	.comm	_USD,4,2                        ; @USD
	.comm	_UDM,4,2                        ; @UDM
	.comm	_MDM,4,2                        ; @MDM
	.comm	_XFER_MW_DMA_0,4,2              ; @XFER_MW_DMA_0
	.no_dead_strip	_sch_set_dmamode
.subsections_via_symbols
