	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunder_i2c_probe_pci
_thunder_i2c_probe_pci:                 ## @thunder_i2c_probe_pci
	.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
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movabsq	$17660905525248, %rax           ## imm = 0x101000001000
	movq	%rax, 88(%r15)
	movl	$4120, 96(%r15)                 ## imm = 0x1018
	movq	%r14, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_pcim_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	_DRV_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_pcim_iomap
	movl	%eax, 84(%r15)
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_thunder_i2c_clock_enable
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	$100000, (%r15)                 ## imm = 0x186A0
LBB0_6:
	leaq	80(%r15), %rdi
	callq	_init_waitqueue_head
	movq	_thunder_i2c_int_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r15)
	movq	_thunder_i2c_int_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	_thunder_i2c_hlc_int_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r15)
	movq	_thunder_i2c_hlc_int_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	_PCI_IRQ_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_pci_alloc_irq_vectors
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	_octeon_i2c_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	%r15, %rdi
	callq	_octeon_i2c_init_lowlevel
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	%r15, %rdi
	callq	_octeon_i2c_set_clock
	movq	%r15, %rbx
	addq	$24, %rbx
	movq	_thunderx_i2c_ops@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm0, 24(%r15)
	movups	%xmm1, 40(%r15)
	movq	32(%rax), %rax
	movq	%rax, 56(%r15)
	movl	$5, 24(%r15)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_octeon_i2c_recovery_info@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	%r14, 40(%r15)
	movl	(%r14), %eax
	movl	%eax, 32(%r15)
	movl	28(%r15), %r12d
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	16(%r15), %rdi
	movl	8(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_thunder_i2c_smbus_setup
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_thunder_i2c_clock_disable
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_thunder_i2c_int_enable,4,2     ## @thunder_i2c_int_enable
	.comm	_thunder_i2c_int_disable,4,2    ## @thunder_i2c_int_disable
	.comm	_thunder_i2c_hlc_int_enable,4,2 ## @thunder_i2c_hlc_int_enable
	.comm	_thunder_i2c_hlc_int_disable,4,2 ## @thunder_i2c_hlc_int_disable
	.comm	_PCI_IRQ_MSIX,4,2               ## @PCI_IRQ_MSIX
	.comm	_octeon_i2c_isr,4,2             ## @octeon_i2c_isr
	.comm	_thunderx_i2c_ops,40,3          ## @thunderx_i2c_ops
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_octeon_i2c_recovery_info,4,2   ## @octeon_i2c_recovery_info
L_.str.1:                               ## @.str.1
	.asciz	"Cavium ThunderX i2c adapter at %s"

L_.str.2:                               ## @.str.2
	.asciz	"Probed. Set system clock to %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"SMBUS alert not active on this bus\n"

	.no_dead_strip	_thunder_i2c_probe_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function thunder_i2c_probe_pci
lCPI0_0:
	.long	4096                            ; 0x1000
	.long	4112                            ; 0x1010
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_thunder_i2c_probe_pci:                 ; @thunder_i2c_probe_pci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #88]
	mov	w8, #4120
	str	w8, [x0, #96]
	str	x19, [x0, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_pcim_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.2:
Lloh5:
	adrp	x22, _DRV_NAME@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DRV_NAME@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_pci_request_regions
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_len
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_pcim_iomap
	str	w0, [x20, #84]
	cbz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_thunder_i2c_clock_enable
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_device_property_read_u32
	cbz	w0, LBB0_6
; %bb.5:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [x20]
LBB0_6:
	add	x0, x20, #80
	bl	_init_waitqueue_head
Lloh9:
	adrp	x8, _thunder_i2c_int_enable@GOTPAGE
Lloh10:
	ldr	x8, [x8, _thunder_i2c_int_enable@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _thunder_i2c_int_disable@GOTPAGE
Lloh13:
	ldr	x9, [x9, _thunder_i2c_int_disable@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #72]
Lloh15:
	adrp	x8, _thunder_i2c_hlc_int_enable@GOTPAGE
Lloh16:
	ldr	x8, [x8, _thunder_i2c_hlc_int_enable@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _thunder_i2c_hlc_int_disable@GOTPAGE
Lloh19:
	ldr	x9, [x9, _thunder_i2c_hlc_int_disable@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #64]
Lloh21:
	adrp	x8, _PCI_IRQ_MSIX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_IRQ_MSIX@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_pci_alloc_irq_vectors
	tbnz	w0, #31, LBB0_17
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_irq_vector
	mov	x1, x0
Lloh24:
	adrp	x8, _octeon_i2c_isr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _octeon_i2c_isr@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.8:
	mov	x0, x20
	bl	_octeon_i2c_init_lowlevel
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.9:
	mov	x0, x20
	bl	_octeon_i2c_set_clock
	add	x21, x20, #24
Lloh27:
	adrp	x8, _thunderx_i2c_ops@GOTPAGE
Lloh28:
	ldr	x8, [x8, _thunderx_i2c_ops@GOTPAGEOFF]
	ldr	x9, [x8, #32]
	ldp	q1, q0, [x8]
	stur	q1, [x20, #24]
	str	x9, [x20, #56]
	stur	q0, [x20, #40]
	mov	w8, #5
	str	w8, [x20, #24]
Lloh29:
	adrp	x8, _I2C_CLASS_HWMON@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _octeon_i2c_recovery_info@GOTPAGE
Lloh33:
	ldr	x9, [x9, _octeon_i2c_recovery_info@GOTPAGEOFF]
	str	w8, [x20, #56]
	stp	x19, x9, [x20, #40]
	ldr	w8, [x19]
	str	w8, [x20, #32]
	ldr	w22, [x20, #28]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.10:
	ldr	x0, [x20, #16]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	ldr	w1, [x19]
	mov	x0, x20
	bl	_thunder_i2c_smbus_setup
	cbz	w0, LBB0_12
; %bb.11:
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_12:
	mov	w21, #0
	b	LBB0_15
LBB0_13:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
	mov	x21, x0
LBB0_18:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_thunder_i2c_clock_disable
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.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	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_thunder_i2c_int_enable,4,2     ; @thunder_i2c_int_enable
	.comm	_thunder_i2c_int_disable,4,2    ; @thunder_i2c_int_disable
	.comm	_thunder_i2c_hlc_int_enable,4,2 ; @thunder_i2c_hlc_int_enable
	.comm	_thunder_i2c_hlc_int_disable,4,2 ; @thunder_i2c_hlc_int_disable
	.comm	_PCI_IRQ_MSIX,4,2               ; @PCI_IRQ_MSIX
	.comm	_octeon_i2c_isr,4,2             ; @octeon_i2c_isr
	.comm	_thunderx_i2c_ops,40,3          ; @thunderx_i2c_ops
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_octeon_i2c_recovery_info,4,2   ; @octeon_i2c_recovery_info
l_.str.1:                               ; @.str.1
	.asciz	"Cavium ThunderX i2c adapter at %s"

l_.str.2:                               ; @.str.2
	.asciz	"Probed. Set system clock to %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"SMBUS alert not active on this bus\n"

	.no_dead_strip	_thunder_i2c_probe_pci
.subsections_via_symbols
