	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jc42_probe
_jc42_probe:                            ## @jc42_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, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r15, 16(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_mutex_init
	movq	_JC42_REG_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	_JC42_CAP_RANGE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_read_bool
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_JC42_REG_SMBUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.6:
	movl	(%r13), %esi
	movq	_SMBUS_STMOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_word_swapped
LBB0_7:
	movq	_JC42_REG_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.8:
	movl	%ebx, 4(%r12)
	movq	_JC42_CFG_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	notl	%eax
	andl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_word_swapped
LBB0_10:
	movl	%ebx, 8(%r12)
	movl	(%r15), %esi
	movq	_jc42_chip_info@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_devm_hwmon_device_register_with_info
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_JC42_REG_CAP,4,2               ## @JC42_REG_CAP
	.comm	_JC42_CAP_RANGE,4,2             ## @JC42_CAP_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smbus-timeout-disable"

	.comm	_JC42_REG_SMBUS,4,2             ## @JC42_REG_SMBUS
	.comm	_SMBUS_STMOUT,4,2               ## @SMBUS_STMOUT
	.comm	_JC42_REG_CONFIG,4,2            ## @JC42_REG_CONFIG
	.comm	_JC42_CFG_SHUTDOWN,4,2          ## @JC42_CFG_SHUTDOWN
	.comm	_jc42_chip_info,4,2             ## @jc42_chip_info
	.no_dead_strip	_jc42_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jc42_probe
_jc42_probe:                            ; @jc42_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	add	x0, x21, #12
	bl	_mutex_init
Lloh3:
	adrp	x8, _JC42_REG_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JC42_REG_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_word_swapped
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh6:
	adrp	x8, _JC42_CAP_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JC42_CAP_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	cset	w8, ne
	str	w8, [x21]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	cbz	x0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x23, _JC42_REG_SMBUS@GOTPAGE
Lloh12:
	ldr	x23, [x23, _JC42_REG_SMBUS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_smbus_read_word_swapped
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _SMBUS_STMOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMBUS_STMOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x20
	bl	_i2c_smbus_write_word_swapped
LBB0_5:
Lloh16:
	adrp	x23, _JC42_REG_CONFIG@GOTPAGE
Lloh17:
	ldr	x23, [x23, _JC42_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_smbus_read_word_swapped
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
	str	w22, [x21, #4]
Lloh18:
	adrp	x8, _JC42_CFG_SHUTDOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _JC42_CFG_SHUTDOWN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	bic	w22, w22, w8
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_i2c_smbus_write_word_swapped
LBB0_8:
	str	w22, [x21, #8]
	ldr	w1, [x20]
Lloh21:
	adrp	x3, _jc42_chip_info@GOTPAGE
Lloh22:
	ldr	x3, [x3, _jc42_chip_info@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x21
	mov	x4, #0
	bl	_devm_hwmon_device_register_with_info
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
LBB0_9:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_JC42_REG_CAP,4,2               ; @JC42_REG_CAP
	.comm	_JC42_CAP_RANGE,4,2             ; @JC42_CAP_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smbus-timeout-disable"

	.comm	_JC42_REG_SMBUS,4,2             ; @JC42_REG_SMBUS
	.comm	_SMBUS_STMOUT,4,2               ; @SMBUS_STMOUT
	.comm	_JC42_REG_CONFIG,4,2            ; @JC42_REG_CONFIG
	.comm	_JC42_CFG_SHUTDOWN,4,2          ; @JC42_CFG_SHUTDOWN
	.comm	_jc42_chip_info,4,2             ; @jc42_chip_info
	.no_dead_strip	_jc42_probe
.subsections_via_symbols
