	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis5595_probe
_sis5595_probe:                         ## @sis5595_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	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r12
	movl	(%rax), %esi
	movq	_SIS5595_EXTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sis5595_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	40(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$36, %rdi
	callq	_mutex_init
	movl	(%r12), %eax
	movl	%eax, 32(%r15)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_s_bridge@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	%rax, 8(%r15)
	movl	$3, 16(%r15)
	movq	_REV2MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.5:
	movq	_SIS5595_PIN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-33(%rbp), %rdx
	callq	_pci_read_config_byte
	cmpb	$0, -33(%rbp)
	js	LBB0_7
## %bb.6:
	movl	$4, 16(%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_sis5595_init_device
	xorl	%edi, %edi
	callq	_SIS5595_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	24(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_SIS5595_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	24(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	_sis5595_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	cmpl	$4, 16(%r15)
	jne	LBB0_10
## %bb.9:
	movq	_sis5595_group_in4@GOTPCREL(%rip), %rsi
	jmp	LBB0_11
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_10:
	movq	_sis5595_group_temp1@GOTPCREL(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	callq	_hwmon_device_register
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	20(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_15:
	movq	_sis5595_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	_sis5595_group_in4@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	_sis5595_group_temp1@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_SIS5595_EXTENT,4,2             ## @SIS5595_EXTENT
	.comm	_sis5595_driver,4,2             ## @sis5595_driver
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sis5595"

	.comm	_s_bridge,8,3                   ## @s_bridge
	.comm	_REV2MIN,8,3                    ## @REV2MIN
	.comm	_SIS5595_PIN_REG,4,2            ## @SIS5595_PIN_REG
	.comm	_sis5595_group,4,2              ## @sis5595_group
	.comm	_sis5595_group_in4,4,2          ## @sis5595_group_in4
	.comm	_sis5595_group_temp1,4,2        ## @sis5595_group_temp1
	.no_dead_strip	_sis5595_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis5595_probe
_sis5595_probe:                         ; @sis5595_probe
	.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, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	ldr	w1, [x0]
Lloh3:
	adrp	x8, _SIS5595_EXTENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIS5595_EXTENT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _sis5595_driver@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sis5595_driver@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_devm_request_region
	cbz	w0, LBB0_8
; %bb.1:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	add	x0, x0, #40
	bl	_mutex_init
	add	x0, x20, #36
	bl	_mutex_init
	ldr	w8, [x21]
	str	w8, [x20, #32]
Lloh12:
	adrp	x8, l_.str@PAGE
Lloh13:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh14:
	adrp	x8, _s_bridge@GOTPAGE
Lloh15:
	ldr	x8, [x8, _s_bridge@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	ldr	x8, [x0]
	str	x8, [x20, #8]
	mov	w9, #3
	str	w9, [x20, #16]
Lloh17:
	adrp	x9, _REV2MIN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REV2MIN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.3:
Lloh20:
	adrp	x8, _SIS5595_PIN_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIS5595_PIN_REG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #15
	bl	_pci_read_config_byte
	ldrsb	w8, [sp, #15]
	tbnz	w8, #31, LBB0_5
; %bb.4:
	mov	w8, #4
	str	w8, [x20, #16]
LBB0_5:
	mov	x0, x20
	bl	_sis5595_init_device
	mov	w0, #0
	bl	_SIS5595_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x20
	bl	_sis5595_read_value
	ldr	x8, [x20, #24]
	str	w0, [x8]
	mov	w0, #1
	bl	_SIS5595_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x20
	bl	_sis5595_read_value
	ldr	x8, [x20, #24]
	str	w0, [x8, #4]
Lloh23:
	adrp	x1, _sis5595_group@GOTPAGE
Lloh24:
	ldr	x1, [x1, _sis5595_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w8, [x20, #16]
	cmp	w8, #4
	b.ne	LBB0_12
; %bb.7:
Lloh25:
	adrp	x1, _sis5595_group_in4@GOTPAGE
Lloh26:
	ldr	x1, [x1, _sis5595_group_in4@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	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_12:
Lloh31:
	adrp	x1, _sis5595_group_temp1@GOTPAGE
Lloh32:
	ldr	x1, [x1, _sis5595_group_temp1@GOTPAGEOFF]
LBB0_13:
	mov	x0, x19
	bl	_sysfs_create_group
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_hwmon_device_register
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w0, [x20, #20]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_16:
Lloh33:
	adrp	x1, _sis5595_group@GOTPAGE
Lloh34:
	ldr	x1, [x1, _sis5595_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
Lloh35:
	adrp	x1, _sis5595_group_in4@GOTPAGE
Lloh36:
	ldr	x1, [x1, _sis5595_group_in4@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
Lloh37:
	adrp	x1, _sis5595_group_temp1@GOTPAGE
Lloh38:
	ldr	x1, [x1, _sis5595_group_temp1@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
	b	LBB0_11
LBB0_17:
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_SIS5595_EXTENT,4,2             ; @SIS5595_EXTENT
	.comm	_sis5595_driver,4,2             ; @sis5595_driver
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sis5595"

	.comm	_s_bridge,8,3                   ; @s_bridge
	.comm	_REV2MIN,8,3                    ; @REV2MIN
	.comm	_SIS5595_PIN_REG,4,2            ; @SIS5595_PIN_REG
	.comm	_sis5595_group,4,2              ; @sis5595_group
	.comm	_sis5595_group_in4,4,2          ; @sis5595_group_in4
	.comm	_sis5595_group_temp1,4,2        ; @sis5595_group_temp1
	.no_dead_strip	_sis5595_probe
.subsections_via_symbols
