	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_get_bars
_dfx_get_bars:                          ## @dfx_get_bars
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_dev_is_pci
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_DFX_BUS_EISA
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_DFX_BUS_TC
	movq	_DFX_MMIO@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	setne	%r15b
	orb	%cl, %r15b
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movl	%r15d, %eax
	xorb	$1, %al
	movq	%rbx, %r12
	movzbl	%al, %ebx
	movq	%r14, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_pci_resource_start
	movl	%eax, (%r13)
	movq	%r14, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	movl	%ebx, %esi
	movq	%r12, %rbx
	callq	_pci_resource_len
	movl	%eax, (%r12)
	movq	$0, 4(%r13)
	movq	$0, 4(%r12)
LBB0_2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_to_eisa_device
	movq	(%rax), %r13
	testb	%r15b, %r15b
	je	LBB0_5
## %bb.4:
	movq	_PI_ESIC_K_MEM_ADD_LO_CMP_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movl	%eax, %r12d
	movq	_PI_ESIC_K_MEM_ADD_LO_CMP_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	shll	$16, %r12d
	shll	$8, %ebx
	orl	%r12d, %ebx
	movq	_PI_ESIC_K_MEM_ADD_LO_CMP_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	orl	%ebx, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	shll	$8, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%ecx, (%r15)
	movq	_PI_ESIC_K_MEM_ADD_HI_CMP_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movl	%eax, %r12d
	movq	_PI_ESIC_K_MEM_ADD_HI_CMP_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movl	%eax, %ebx
	shll	$16, %r12d
	shll	$8, %ebx
	orl	%r12d, %ebx
	movq	_PI_ESIC_K_MEM_ADD_HI_CMP_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	orl	%ebx, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	subl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	shll	$8, %eax
	movq	_PI_MEM_ADD_MASK_M@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	incl	%eax
	jmp	LBB0_6
LBB0_5:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, (%r15)
	movq	_PI_ESIC_K_CSR_IO_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movl	%eax, (%rbx)
	movq	_PI_DEFEA_K_BURST_HOLDOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	movl	%eax, 4(%r15)
	movq	_PI_ESIC_K_BURST_HOLDOFF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_PI_ESIC_K_ESIC_CSR@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movl	%r13d, 8(%r15)
	movq	_PI_ESIC_K_ESIC_CSR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_7:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_to_tc_dev
	movq	_PI_TC_K_CSR_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	_PI_TC_K_CSR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	$0, 4(%rdx)
	movq	$0, 4(%rbx)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DFX_MMIO,8,3                   ## @DFX_MMIO
	.comm	_PI_ESIC_K_MEM_ADD_LO_CMP_2,8,3 ## @PI_ESIC_K_MEM_ADD_LO_CMP_2
	.comm	_PI_ESIC_K_MEM_ADD_LO_CMP_1,8,3 ## @PI_ESIC_K_MEM_ADD_LO_CMP_1
	.comm	_PI_ESIC_K_MEM_ADD_LO_CMP_0,8,3 ## @PI_ESIC_K_MEM_ADD_LO_CMP_0
	.comm	_PI_ESIC_K_MEM_ADD_HI_CMP_2,8,3 ## @PI_ESIC_K_MEM_ADD_HI_CMP_2
	.comm	_PI_ESIC_K_MEM_ADD_HI_CMP_1,8,3 ## @PI_ESIC_K_MEM_ADD_HI_CMP_1
	.comm	_PI_ESIC_K_MEM_ADD_HI_CMP_0,8,3 ## @PI_ESIC_K_MEM_ADD_HI_CMP_0
	.comm	_PI_MEM_ADD_MASK_M,4,2          ## @PI_MEM_ADD_MASK_M
	.comm	_PI_ESIC_K_CSR_IO_LEN,4,2       ## @PI_ESIC_K_CSR_IO_LEN
	.comm	_PI_DEFEA_K_BURST_HOLDOFF,4,2   ## @PI_DEFEA_K_BURST_HOLDOFF
	.comm	_PI_ESIC_K_BURST_HOLDOFF_LEN,4,2 ## @PI_ESIC_K_BURST_HOLDOFF_LEN
	.comm	_PI_ESIC_K_ESIC_CSR,4,2         ## @PI_ESIC_K_ESIC_CSR
	.comm	_PI_ESIC_K_ESIC_CSR_LEN,4,2     ## @PI_ESIC_K_ESIC_CSR_LEN
	.comm	_PI_TC_K_CSR_OFFSET,4,2         ## @PI_TC_K_CSR_OFFSET
	.comm	_PI_TC_K_CSR_LEN,4,2            ## @PI_TC_K_CSR_LEN
	.no_dead_strip	_dfx_get_bars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_get_bars
_dfx_get_bars:                          ; @dfx_get_bars
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_dev_is_pci
	mov	x24, x0
	mov	x0, x21
	bl	_DFX_BUS_EISA
	mov	x23, x0
	mov	x0, x21
	bl	_DFX_BUS_TC
	mov	x22, x0
Lloh0:
	adrp	x8, _DFX_MMIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DFX_MMIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w0, #0, #0, eq
	cset	w25, ne
	cbz	w24, LBB0_2
; %bb.1:
	eor	w24, w25, #0x1
	mov	x0, x21
	bl	_to_pci_dev
	mov	x1, x24
	bl	_pci_resource_start
	str	w0, [x20]
	mov	x0, x21
	bl	_to_pci_dev
	mov	x1, x24
	bl	_pci_resource_len
	str	w0, [x19]
	movi.2d	v0, #0000000000000000
	stur	d0, [x20, #4]
	stur	d0, [x19, #4]
LBB0_2:
	cbz	w23, LBB0_7
; %bb.3:
	mov	x0, x21
	bl	_to_eisa_device
	ldr	x24, [x0]
	cbz	w25, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _PI_ESIC_K_MEM_ADD_LO_CMP_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PI_ESIC_K_MEM_ADD_LO_CMP_2@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inb
	mov	x23, x0
Lloh6:
	adrp	x8, _PI_ESIC_K_MEM_ADD_LO_CMP_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PI_ESIC_K_MEM_ADD_LO_CMP_1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inb
	lsl	w8, w0, #8
	orr	w23, w8, w23, lsl #16
Lloh9:
	adrp	x8, _PI_ESIC_K_MEM_ADD_LO_CMP_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PI_ESIC_K_MEM_ADD_LO_CMP_0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inb
	orr	w25, w23, w0
	lsl	w8, w25, #8
	str	w8, [x20]
Lloh12:
	adrp	x8, _PI_ESIC_K_MEM_ADD_HI_CMP_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PI_ESIC_K_MEM_ADD_HI_CMP_2@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inb
	mov	x23, x0
Lloh15:
	adrp	x8, _PI_ESIC_K_MEM_ADD_HI_CMP_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PI_ESIC_K_MEM_ADD_HI_CMP_1@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inb
	lsl	w8, w0, #8
	orr	w23, w8, w23, lsl #16
Lloh18:
	adrp	x8, _PI_ESIC_K_MEM_ADD_HI_CMP_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PI_ESIC_K_MEM_ADD_HI_CMP_0@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inb
	orr	w8, w23, w0
	sub	w8, w8, w25
Lloh21:
	adrp	x9, _PI_MEM_ADD_MASK_M@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PI_MEM_ADD_MASK_M@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #8
	add	w8, w8, #1
	b	LBB0_6
LBB0_5:
	str	w24, [x20]
Lloh24:
	adrp	x8, _PI_ESIC_K_CSR_IO_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PI_ESIC_K_CSR_IO_LEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
LBB0_6:
	str	w8, [x19]
Lloh27:
	adrp	x8, _PI_DEFEA_K_BURST_HOLDOFF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PI_DEFEA_K_BURST_HOLDOFF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	add	w8, w8, w24
Lloh30:
	adrp	x9, _PI_ESIC_K_BURST_HOLDOFF_LEN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PI_ESIC_K_BURST_HOLDOFF_LEN@GOTPAGEOFF]
	str	w8, [x20, #4]
Lloh32:
	ldr	w8, [x9]
	str	w8, [x19, #4]
Lloh33:
	adrp	x8, _PI_ESIC_K_ESIC_CSR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PI_ESIC_K_ESIC_CSR@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	add	w8, w8, w24
	str	w8, [x20, #8]
Lloh36:
	adrp	x8, _PI_ESIC_K_ESIC_CSR_LEN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PI_ESIC_K_ESIC_CSR_LEN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_7:
	cbz	w22, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_to_tc_dev
	ldr	w8, [x0]
Lloh39:
	adrp	x9, _PI_TC_K_CSR_OFFSET@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PI_TC_K_CSR_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	add	w8, w9, w8
Lloh42:
	adrp	x9, _PI_TC_K_CSR_LEN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PI_TC_K_CSR_LEN@GOTPAGEOFF]
	str	w8, [x20]
Lloh44:
	ldr	w8, [x9]
	str	w8, [x19]
	movi.2d	v0, #0000000000000000
	stur	d0, [x20, #4]
	stur	d0, [x19, #4]
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_DFX_MMIO,8,3                   ; @DFX_MMIO
	.comm	_PI_ESIC_K_MEM_ADD_LO_CMP_2,8,3 ; @PI_ESIC_K_MEM_ADD_LO_CMP_2
	.comm	_PI_ESIC_K_MEM_ADD_LO_CMP_1,8,3 ; @PI_ESIC_K_MEM_ADD_LO_CMP_1
	.comm	_PI_ESIC_K_MEM_ADD_LO_CMP_0,8,3 ; @PI_ESIC_K_MEM_ADD_LO_CMP_0
	.comm	_PI_ESIC_K_MEM_ADD_HI_CMP_2,8,3 ; @PI_ESIC_K_MEM_ADD_HI_CMP_2
	.comm	_PI_ESIC_K_MEM_ADD_HI_CMP_1,8,3 ; @PI_ESIC_K_MEM_ADD_HI_CMP_1
	.comm	_PI_ESIC_K_MEM_ADD_HI_CMP_0,8,3 ; @PI_ESIC_K_MEM_ADD_HI_CMP_0
	.comm	_PI_MEM_ADD_MASK_M,4,2          ; @PI_MEM_ADD_MASK_M
	.comm	_PI_ESIC_K_CSR_IO_LEN,4,2       ; @PI_ESIC_K_CSR_IO_LEN
	.comm	_PI_DEFEA_K_BURST_HOLDOFF,4,2   ; @PI_DEFEA_K_BURST_HOLDOFF
	.comm	_PI_ESIC_K_BURST_HOLDOFF_LEN,4,2 ; @PI_ESIC_K_BURST_HOLDOFF_LEN
	.comm	_PI_ESIC_K_ESIC_CSR,4,2         ; @PI_ESIC_K_ESIC_CSR
	.comm	_PI_ESIC_K_ESIC_CSR_LEN,4,2     ; @PI_ESIC_K_ESIC_CSR_LEN
	.comm	_PI_TC_K_CSR_OFFSET,4,2         ; @PI_TC_K_CSR_OFFSET
	.comm	_PI_TC_K_CSR_LEN,4,2            ; @PI_TC_K_CSR_LEN
	.no_dead_strip	_dfx_get_bars
.subsections_via_symbols
