	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis96x_probe
_sis96x_probe:                          ## @sis96x_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movq	_sis96x_smbus_base@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_PCI_CLASS_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_CLASS_SERIAL_SMBUS@GOTPCREL(%rip), %rax
	movq	-40(%rbp), %rdx
	cmpq	%rdx, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_SIS96x_BAR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_pci_resource_start
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	callq	_acpi_check_resource_conflict
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r15), %edi
	movq	_SMB_IOSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_sis96x_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	_sis96x_adapter@GOTPCREL(%rip), %rbx
	movq	%r14, 8(%rbx)
	movl	(%rbx), %edi
	movl	(%r15), %ecx
	leaq	L_.str.5(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_release_region
	movl	$0, (%r15)
	jmp	LBB0_10
LBB0_14:
	movl	(%r15), %edx
	movl	(%r12), %eax
	leal	(%rdx,%rax), %ecx
	decl	%ecx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movl	$0, (%r15)
	jmp	LBB0_8
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_sis96x_smbus_base,4,2          ## @sis96x_smbus_base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only one device supported.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PCI_CLASS_DEVICE,4,2           ## @PCI_CLASS_DEVICE
	.comm	_PCI_CLASS_SERIAL_SMBUS,8,3     ## @PCI_CLASS_SERIAL_SMBUS
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported device class 0x%04x!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SIS96x_BAR,8,3                 ## @SIS96x_BAR
L_.str.2:                               ## @.str.2
	.asciz	"SiS96x SMBus base address not initialized!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"SiS96x SMBus base address: 0x%04x\n"

	.comm	_SMB_IOSIZE,4,2                 ## @SMB_IOSIZE
	.comm	_sis96x_driver,4,2              ## @sis96x_driver
L_.str.4:                               ## @.str.4
	.asciz	"SMBus registers 0x%04x-0x%04x already in use!\n"

	.comm	_sis96x_adapter,16,3            ## @sis96x_adapter
L_.str.5:                               ## @.str.5
	.asciz	"SiS96x SMBus adapter at 0x%04x"

L_.str.6:                               ## @.str.6
	.asciz	"Couldn't register adapter!\n"

	.no_dead_strip	_sis96x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis96x_probe
_sis96x_probe:                          ; @sis96x_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x21, _sis96x_smbus_base@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sis96x_smbus_base@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
Lloh6:
	adrp	x8, _PCI_CLASS_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_CLASS_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_pci_read_config_word
Lloh9:
	adrp	x8, _PCI_CLASS_SERIAL_SMBUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_CLASS_SERIAL_SMBUS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	ldr	x8, [sp, #24]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.3:
Lloh12:
	adrp	x20, _SIS96x_BAR@GOTPAGE
Lloh13:
	ldr	x20, [x20, _SIS96x_BAR@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_pci_resource_start
	str	w0, [x21]
	cbz	w0, LBB0_10
; %bb.4:
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	bl	_acpi_check_resource_conflict
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x21]
Lloh16:
	adrp	x22, _SMB_IOSIZE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _SMB_IOSIZE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _sis96x_driver@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sis96x_driver@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_request_region
	cbz	w0, LBB0_11
; %bb.6:
Lloh21:
	adrp	x20, _sis96x_adapter@GOTPAGE
Lloh22:
	ldr	x20, [x20, _sis96x_adapter@GOTPAGEOFF]
	str	x19, [x20, #8]
	ldr	w0, [x20]
	ldr	w3, [x21]
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x20
	bl	_i2c_add_adapter
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.7:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_release_region
	str	wzr, [x21]
	b	LBB0_14
LBB0_8:
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	ldr	w8, [x21]
	ldr	w9, [x22]
	add	w9, w8, w9
	sub	w9, w9, #1
	stp	x8, x9, [sp]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	str	wzr, [x21]
LBB0_12:
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_sis96x_smbus_base,4,2          ; @sis96x_smbus_base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only one device supported.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PCI_CLASS_DEVICE,4,2           ; @PCI_CLASS_DEVICE
	.comm	_PCI_CLASS_SERIAL_SMBUS,8,3     ; @PCI_CLASS_SERIAL_SMBUS
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported device class 0x%04x!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SIS96x_BAR,8,3                 ; @SIS96x_BAR
l_.str.2:                               ; @.str.2
	.asciz	"SiS96x SMBus base address not initialized!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"SiS96x SMBus base address: 0x%04x\n"

	.comm	_SMB_IOSIZE,4,2                 ; @SMB_IOSIZE
	.comm	_sis96x_driver,4,2              ; @sis96x_driver
l_.str.4:                               ; @.str.4
	.asciz	"SMBus registers 0x%04x-0x%04x already in use!\n"

	.comm	_sis96x_adapter,16,3            ; @sis96x_adapter
l_.str.5:                               ; @.str.5
	.asciz	"SiS96x SMBus adapter at 0x%04x"

l_.str.6:                               ; @.str.6
	.asciz	"Couldn't register adapter!\n"

	.no_dead_strip	_sis96x_probe
.subsections_via_symbols
