	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb710_pci_configure
_cb710_pci_configure:                   ## @cb710_pci_configure
	.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	20(%rdi), %edi
	callq	_PCI_SLOT
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_PCI_DEVFN
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$72, %esi
	movl	$-256, %edx
	movl	$63, %ecx
	callq	_cb710_pci_update_config_reg
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$72, %esi
	callq	_pci_read_config_dword
	cmpl	$0, -28(%rbp)
	js	LBB0_7
## %bb.1:
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	callq	_pci_get_slot
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PCI_VENDOR_ID_ENE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	movq	_PCI_DEVICE_ID_ENE_720@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$140, %esi
	movl	$-15728641, %edx                ## imm = 0xFF0FFFFF
	movl	$1048576, %ecx                  ## imm = 0x100000
	callq	_cb710_pci_update_config_reg
	movq	%rbx, %rdi
	movl	$176, %esi
	movl	$-134217729, %edx               ## imm = 0xF7FFFFFF
	movl	$134217728, %ecx                ## imm = 0x8000000
	callq	_cb710_pci_update_config_reg
LBB0_6:
	movq	%rbx, %rdi
	movl	$140, %esi
	movl	$-3841, %edx                    ## imm = 0xF0FF
	movl	$512, %ecx                      ## imm = 0x200
	callq	_cb710_pci_update_config_reg
	movq	%rbx, %rdi
	movl	$144, %esi
	movl	$-393217, %edx                  ## imm = 0xFFF9FFFF
	movl	$262144, %ecx                   ## imm = 0x40000
	callq	_cb710_pci_update_config_reg
	movq	%rbx, %rdi
	callq	_pci_dev_put
	jmp	LBB0_7
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_VENDOR_ID_ENE,8,3          ## @PCI_VENDOR_ID_ENE
	.comm	_PCI_DEVICE_ID_ENE_720,8,3      ## @PCI_DEVICE_ID_ENE_720
	.no_dead_strip	_cb710_pci_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb710_pci_configure
_cb710_pci_configure:                   ; @cb710_pci_configure
	.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
	ldr	w0, [x0, #20]
	bl	_PCI_SLOT
	mov	w1, #0
	bl	_PCI_DEVFN
	mov	x20, x0
	mov	x0, x19
	mov	w1, #72
	mov	w2, #-256
	mov	w3, #63
	bl	_cb710_pci_update_config_reg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #72
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_6
; %bb.1:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_pci_get_slot
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_ENE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_ENE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _PCI_DEVICE_ID_ENE_720@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_DEVICE_ID_ENE_720@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #140
	mov	w2, #-15728641
	mov	w3, #1048576
	bl	_cb710_pci_update_config_reg
	mov	x0, x19
	mov	w1, #176
	mov	w2, #-134217729
	mov	w3, #134217728
	bl	_cb710_pci_update_config_reg
LBB0_5:
	mov	x0, x19
	mov	w1, #140
	mov	w2, #-3841
	mov	w3, #512
	bl	_cb710_pci_update_config_reg
	mov	x0, x19
	mov	w1, #144
	mov	w2, #-393217
	mov	w3, #262144
	bl	_cb710_pci_update_config_reg
	mov	x0, x19
	bl	_pci_dev_put
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_VENDOR_ID_ENE,8,3          ; @PCI_VENDOR_ID_ENE
	.comm	_PCI_DEVICE_ID_ENE_720,8,3      ; @PCI_DEVICE_ID_ENE_720
	.no_dead_strip	_cb710_pci_configure
.subsections_via_symbols
