	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd640_hardware_init
_cmd640_hardware_init:                  ## @cmd640_hardware_init
	.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	%rdi, %rbx
	movl	$91, %esi
	xorl	%edx, %edx
	callq	_pci_write_config_byte
	movq	_CFR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movq	_CMDTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_write_config_byte
	movq	_BRST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_pci_write_config_byte
	movq	_CNTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_byte
	movl	(%r15), %esi
	movl	$192, %edx
	orl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movq	_ARTIM23@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_byte
	movl	-28(%rbp), %edx
	orl	$12, %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFR,4,2                        ## @CFR
	.comm	_CMDTIM,4,2                     ## @CMDTIM
	.comm	_BRST,4,2                       ## @BRST
	.comm	_CNTRL,4,2                      ## @CNTRL
	.comm	_ARTIM23,4,2                    ## @ARTIM23
	.no_dead_strip	_cmd640_hardware_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd640_hardware_init
_cmd640_hardware_init:                  ; @cmd640_hardware_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #91
	mov	w2, #0
	bl	_pci_write_config_byte
Lloh0:
	adrp	x8, _CFR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
Lloh3:
	adrp	x8, _CMDTIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMDTIM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_write_config_byte
Lloh6:
	adrp	x8, _BRST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_pci_write_config_byte
Lloh9:
	adrp	x20, _CNTRL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _CNTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w1, [x20]
	ldr	w8, [sp, #8]
	orr	w2, w8, #0xc0
	mov	x0, x19
	bl	_pci_write_config_byte
Lloh11:
	adrp	x20, _ARTIM23@GOTPAGE
Lloh12:
	ldr	x20, [x20, _ARTIM23@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	orr	w2, w8, #0xc
	str	w2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CFR,4,2                        ; @CFR
	.comm	_CMDTIM,4,2                     ; @CMDTIM
	.comm	_BRST,4,2                       ; @BRST
	.comm	_CNTRL,4,2                      ; @CNTRL
	.comm	_ARTIM23,4,2                    ; @ARTIM23
	.no_dead_strip	_cmd640_hardware_init
.subsections_via_symbols
