	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd64x_set_dma_mode
_cmd64x_set_dma_mode:                   ## @cmd64x_set_dma_mode
	.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
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_pci_dev
	movl	(%r13), %r14d
	movl	$0, -44(%rbp)
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_UDIDETCR0@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_UDIDETCR1@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %r15d
	movl	4(%r13), %r12d
	leaq	-44(%rbp), %rdx
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_pci_read_config_byte
	testb	$1, %r14b
	movl	$-54, %eax
	movl	$-203, %edx
	cmovel	%eax, %edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	leal	-128(%r12), %eax
	cmpl	$8, %eax
	ja	LBB0_14
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_cmd64x_program_timings
	movl	-44(%rbp), %edx
	jmp	LBB0_14
LBB0_6:
	andl	$1, %r14d
	leal	(%r14,%r14,4), %eax
	addl	$5, %eax
	orl	%eax, %edx
	jmp	LBB0_13
LBB0_7:
	testb	$1, %r14b
	movl	$21, %eax
	movl	$74, %ecx
	jmp	LBB0_12
LBB0_8:
	testb	$1, %r14b
	movl	$37, %eax
	movl	$138, %ecx
	jmp	LBB0_12
LBB0_9:
	testb	$1, %r14b
	movl	$17, %eax
	movl	$66, %ecx
	jmp	LBB0_12
LBB0_10:
	testb	$1, %r14b
	movl	$33, %eax
	movl	$130, %ecx
	jmp	LBB0_12
LBB0_11:
	testb	$1, %r14b
	movl	$49, %eax
	movl	$194, %ecx
LBB0_12:
	cmovel	%eax, %ecx
	orl	%ecx, %edx
LBB0_13:
	movl	%edx, -44(%rbp)
LBB0_14:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_write_config_byte
	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_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_UDIDETCR1,4,2                  ## @UDIDETCR1
	.comm	_UDIDETCR0,4,2                  ## @UDIDETCR0
	.no_dead_strip	_cmd64x_set_dma_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd64x_set_dma_mode
_cmd64x_set_dma_mode:                   ; @cmd64x_set_dma_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_pci_dev
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _UDIDETCR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UDIDETCR1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _UDIDETCR0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UDIDETCR0@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	ldp	w23, w22, [x21]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_byte
	tst	w23, #0x1
	mov	w8, #-203
	mov	w9, #-54
	csel	w8, w9, w8, eq
	ldr	w9, [sp, #12]
	and	w2, w9, w8
	str	w2, [sp, #12]
	sub	w8, w22, #128
	cmp	w8, #8
	b.hi	LBB0_10
; %bb.1:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x21
	mov	x1, x22
	bl	_cmd64x_program_timings
	ldr	w2, [sp, #12]
	b	LBB0_10
LBB0_3:
	tst	w23, #0x1
	mov	w8, #10
	mov	w9, #5
	b	LBB0_9
LBB0_4:
	tst	w23, #0x1
	mov	w8, #74
	mov	w9, #21
	b	LBB0_9
LBB0_5:
	tst	w23, #0x1
	mov	w8, #138
	mov	w9, #37
	b	LBB0_9
LBB0_6:
	tst	w23, #0x1
	mov	w8, #66
	mov	w9, #17
	b	LBB0_9
LBB0_7:
	tst	w23, #0x1
	mov	w8, #130
	mov	w9, #33
	b	LBB0_9
LBB0_8:
	tst	w23, #0x1
	mov	w8, #194
	mov	w9, #49
LBB0_9:
	csel	w8, w9, w8, eq
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_write_config_byte
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_UDIDETCR1,4,2                  ; @UDIDETCR1
	.comm	_UDIDETCR0,4,2                  ; @UDIDETCR0
	.no_dead_strip	_cmd64x_set_dma_mode
.subsections_via_symbols
