	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ismt_probe
_ismt_probe:                            ## @ismt_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_smbus_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	_ISMT_MAX_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, 40(%rbx)
	movq	%r14, %rdi
	callq	_pcim_enable_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_pci_set_master
	movq	_SMBBAR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_resource_start
	movq	%rax, %r12
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_resource_len
	testq	%r12, %r12
	je	LBB0_8
## %bb.5:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	movq	%r12, %rcx
	callq	_snprintf
	movq	40(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	40(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	callq	_dev_dbg
	movq	(%r15), %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	callq	_acpi_check_resource_conflict
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r15), %rsi
	movq	_ismt_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r15d
	addq	%r12, %r13
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_13:
	movq	_SMBBAR@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_pcim_iomap
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testq	%rax, %rax
	je	LBB0_21
LBB0_16:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testq	%rax, %rax
	je	LBB0_21
LBB0_18:
	leaq	L_.str.8(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str.7(%rip), %rsi
LBB0_20:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_21:
	movq	%rbx, %rdi
	callq	_ismt_dev_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_ismt_hw_init
	movq	%rbx, %rdi
	callq	_ismt_int_init
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_24
LBB0_23:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_pci_release_region
	jmp	LBB0_10
LBB0_24:
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_20
LBB0_26:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_smbus_algorithm,4,2            ## @smbus_algorithm
	.comm	_ISMT_MAX_RETRIES,4,2           ## @ISMT_MAX_RETRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable SMBus PCI device (%d)\n"

	.comm	_SMBBAR,8,3                     ## @SMBBAR
L_.str.1:                               ## @.str.1
	.asciz	"SMBus base address uninitialized, upgrade BIOS\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"SMBus iSMT adapter at %lx"

L_.str.3:                               ## @.str.3
	.asciz	" start=0x%lX\n"

L_.str.4:                               ## @.str.4
	.asciz	" len=0x%lX\n"

L_.str.5:                               ## @.str.5
	.asciz	"ACPI resource conflict!\n"

	.comm	_ismt_driver,4,2                ## @ismt_driver
L_.str.6:                               ## @.str.6
	.asciz	"Failed to request SMBus region 0x%lx-0x%lx\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unable to ioremap SMBus BAR\n"

L_.str.8:                               ## @.str.8
	.asciz	"pci_set_dma_mask fail %p\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to add SMBus iSMT adapter\n"

	.no_dead_strip	_ismt_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ismt_probe
_ismt_probe:                            ; @ismt_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x20
	mov	x1, x20
	bl	_i2c_set_adapdata
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh9:
	adrp	x8, _smbus_algorithm@GOTPAGE
Lloh10:
	ldr	x8, [x8, _smbus_algorithm@GOTPAGEOFF]
	stp	x19, x8, [x20, #8]
Lloh11:
	adrp	x8, _ISMT_MAX_RETRIES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISMT_MAX_RETRIES@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	str	x19, [x20, #40]
	mov	x0, x19
	bl	_pcim_enable_device
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_4:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_pci_set_master
Lloh18:
	adrp	x24, _SMBBAR@GOTPAGE
Lloh19:
	ldr	x24, [x24, _SMBBAR@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	bl	_pci_resource_start
	mov	x22, x0
	ldr	x1, [x24]
	mov	x0, x19
	bl	_pci_resource_len
	cmp	x22, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_9
; %bb.6:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_9:
	mov	x23, x0
	ldr	w0, [x20]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	mov	x3, x22
	bl	_snprintf
	ldr	x0, [x20, #40]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	ldr	x0, [x20, #40]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_acpi_check_resource_conflict
	cbz	w0, LBB0_11
; %bb.10:
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_11:
	ldr	x1, [x24]
Lloh32:
	adrp	x8, _ismt_driver@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ismt_driver@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_request_region
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	add	x8, x23, x22
	stp	x22, x8, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_13:
	ldr	x1, [x24]
	mov	x0, x19
	mov	x2, x23
	bl	_pcim_iomap
	str	w0, [x20, #32]
	cbz	w0, LBB0_19
; %bb.14:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbnz	x0, LBB0_16
; %bb.15:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	x0, LBB0_21
LBB0_16:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbnz	x0, LBB0_18
; %bb.17:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	x0, LBB0_21
LBB0_18:
	str	x19, [sp]
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w21, #0
	b	LBB0_23
LBB0_19:
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
Lloh41:
	adrp	x8, _ENODEV@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_23
LBB0_21:
	mov	x0, x20
	bl	_ismt_dev_init
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_ismt_hw_init
	mov	x0, x20
	bl	_ismt_int_init
	mov	x21, x0
	cbz	w0, LBB0_24
LBB0_23:
	ldr	x1, [x24]
	mov	x0, x19
	bl	_pci_release_region
	b	LBB0_8
LBB0_24:
	mov	x0, x20
	bl	_i2c_add_adapter
	cbz	w0, LBB0_26
; %bb.25:
Lloh44:
	adrp	x1, l_.str.9@PAGE
Lloh45:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_20
LBB0_26:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_smbus_algorithm,4,2            ; @smbus_algorithm
	.comm	_ISMT_MAX_RETRIES,4,2           ; @ISMT_MAX_RETRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable SMBus PCI device (%d)\n"

	.comm	_SMBBAR,8,3                     ; @SMBBAR
l_.str.1:                               ; @.str.1
	.asciz	"SMBus base address uninitialized, upgrade BIOS\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"SMBus iSMT adapter at %lx"

l_.str.3:                               ; @.str.3
	.asciz	" start=0x%lX\n"

l_.str.4:                               ; @.str.4
	.asciz	" len=0x%lX\n"

l_.str.5:                               ; @.str.5
	.asciz	"ACPI resource conflict!\n"

	.comm	_ismt_driver,4,2                ; @ismt_driver
l_.str.6:                               ; @.str.6
	.asciz	"Failed to request SMBus region 0x%lx-0x%lx\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unable to ioremap SMBus BAR\n"

l_.str.8:                               ; @.str.8
	.asciz	"pci_set_dma_mask fail %p\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to add SMBus iSMT adapter\n"

	.no_dead_strip	_ismt_probe
.subsections_via_symbols
