	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_v3
_config_v3:                             ## @config_v3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_PCI_BASE_ADDRESS_MEM_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	andq	(%rax), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ioremap_nocache
	movq	_ioaddr@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_REG2@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	$33120, %edi                    ## imm = 0x8160
	movq	%rax, %rsi
	callq	_writel
	movq	_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	$-805568480, %edi               ## imm = 0xCFFC0020
	callq	_writel
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BASE_ADDRESS_MEM_MASK,8,3  ## @PCI_BASE_ADDRESS_MEM_MASK
	.comm	_ioaddr,8,3                     ## @ioaddr
	.comm	_REG2,8,3                       ## @REG2
	.comm	_REG,8,3                        ## @REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using Banshee/Voodoo3 I2C device at %p\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_config_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_v3
_config_v3:                             ; @config_v3
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PCI_BASE_ADDRESS_MEM_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_MEM_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	x0, x9, x8
	mov	w1, #4096
	bl	_ioremap_nocache
Lloh3:
	adrp	x20, _ioaddr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ioaddr@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _REG2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG2@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	w0, #33120
	bl	_writel
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _REG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #32
	movk	w0, #53244, lsl #16
	bl	_writel
	ldr	x2, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BASE_ADDRESS_MEM_MASK,8,3  ; @PCI_BASE_ADDRESS_MEM_MASK
	.comm	_ioaddr,8,3                     ; @ioaddr
	.comm	_REG2,8,3                       ; @REG2
	.comm	_REG,8,3                        ; @REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using Banshee/Voodoo3 I2C device at %p\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_config_v3
.subsections_via_symbols
