	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_bus_uninit
_dfx_bus_uninit:                        ## @dfx_bus_uninit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_dev_is_pci
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_DFX_BUS_EISA
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_DBG_printk
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_to_eisa_device
	movq	(%rax), %rbx
	movq	_PI_ESIC_K_IO_CONFIG_STAT_0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movq	_PI_CONFIG_STAT_0_M_INT_ENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	_PI_ESIC_K_SLOT_CNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_PI_ESIC_K_FUNCTION_CNTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_outb
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movq	_PFI_K_REG_MODE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dfx_port_write_long            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In dfx_bus_uninit...\n"

	.comm	_PI_ESIC_K_IO_CONFIG_STAT_0,8,3 ## @PI_ESIC_K_IO_CONFIG_STAT_0
	.comm	_PI_CONFIG_STAT_0_M_INT_ENB,4,2 ## @PI_CONFIG_STAT_0_M_INT_ENB
	.comm	_PI_ESIC_K_SLOT_CNTRL,8,3       ## @PI_ESIC_K_SLOT_CNTRL
	.comm	_PI_ESIC_K_FUNCTION_CNTRL,8,3   ## @PI_ESIC_K_FUNCTION_CNTRL
	.comm	_PFI_K_REG_MODE_CTRL,4,2        ## @PFI_K_REG_MODE_CTRL
	.no_dead_strip	_dfx_bus_uninit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_bus_uninit
_dfx_bus_uninit:                        ; @dfx_bus_uninit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_dev_is_pci
	mov	x20, x0
	mov	x0, x21
	bl	_DFX_BUS_EISA
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_printk
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_to_eisa_device
	ldr	x21, [x0]
Lloh2:
	adrp	x22, _PI_ESIC_K_IO_CONFIG_STAT_0@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PI_ESIC_K_IO_CONFIG_STAT_0@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x21
	bl	_inb
Lloh4:
	adrp	x8, _PI_CONFIG_STAT_0_M_INT_ENB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PI_CONFIG_STAT_0_M_INT_ENB@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x22]
	add	x1, x8, x21
	bl	_outb
Lloh7:
	adrp	x8, _PI_ESIC_K_SLOT_CNTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PI_ESIC_K_SLOT_CNTRL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_outb
Lloh10:
	adrp	x8, _PI_ESIC_K_FUNCTION_CNTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PI_ESIC_K_FUNCTION_CNTRL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #0
	bl	_outb
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _PFI_K_REG_MODE_CTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PFI_K_REG_MODE_CTRL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dfx_port_write_long
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In dfx_bus_uninit...\n"

	.comm	_PI_ESIC_K_IO_CONFIG_STAT_0,8,3 ; @PI_ESIC_K_IO_CONFIG_STAT_0
	.comm	_PI_CONFIG_STAT_0_M_INT_ENB,4,2 ; @PI_CONFIG_STAT_0_M_INT_ENB
	.comm	_PI_ESIC_K_SLOT_CNTRL,8,3       ; @PI_ESIC_K_SLOT_CNTRL
	.comm	_PI_ESIC_K_FUNCTION_CNTRL,8,3   ; @PI_ESIC_K_FUNCTION_CNTRL
	.comm	_PFI_K_REG_MODE_CTRL,4,2        ; @PFI_K_REG_MODE_CTRL
	.no_dead_strip	_dfx_bus_uninit
.subsections_via_symbols
