	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pem_probe
_pem_probe:                             ## @pem_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
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BLOCK_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	leaq	4(%r15), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r15, 56(%rax)
	movq	%rax, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	_PEM_READ_FIRMWARE_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_pem_read_block
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	movq	_PEM_CLEAR_INFO_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_3
## %bb.8:
	movq	40(%rbx), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movq	16(%rax), %r8
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	8(%rbx), %rax
	movq	_pem_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_PEM_READ_INPUT_STRING@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	32(%rbx), %rdx
	movl	$7, %r12d
	movq	%r15, %rdi
	movl	$7, %ecx
	callq	_pem_read_block
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	jns	LBB0_19
## %bb.13:
	movl	(%r13), %esi
	movq	32(%rbx), %rdx
	movl	$8, %r12d
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_pem_read_block
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_18
## %bb.15:
	cmpq	$0, 8(%rax)
	jne	LBB0_18
## %bb.16:
	cmpq	$0, 16(%rax)
	jne	LBB0_18
## %bb.17:
	cmpq	$0, 24(%rax)
	jne	LBB0_18
	jmp	LBB0_19
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_18
## %bb.10:
	cmpq	$0, 8(%rax)
	jne	LBB0_18
## %bb.11:
	cmpq	$0, 16(%rax)
	je	LBB0_19
LBB0_18:
	movl	%r12d, 24(%rbx)
LBB0_19:
	cmpl	$0, 24(%rbx)
	je	LBB0_20
## %bb.21:
	movq	8(%rbx), %rax
	movq	_pem_input_group@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movl	$2, %r12d
	jmp	LBB0_22
LBB0_20:
	movl	$1, %r12d
LBB0_22:
	movq	_PEM_READ_FAN_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_pem_read_block
	testl	%eax, %eax
	jne	LBB0_28
## %bb.23:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_27
## %bb.24:
	cmpq	$0, 8(%rax)
	jne	LBB0_27
## %bb.25:
	cmpq	$0, 16(%rax)
	jne	LBB0_27
## %bb.26:
	cmpq	$0, 24(%rax)
	je	LBB0_28
LBB0_27:
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	_pem_fan_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax,%r12,8)
LBB0_28:
	movl	(%r15), %esi
	movq	8(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BLOCK_DATA,4,2  ## @I2C_FUNC_SMBUS_BLOCK_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ## @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PEM_READ_FIRMWARE_REV,4,2      ## @PEM_READ_FIRMWARE_REV
	.comm	_PEM_CLEAR_INFO_FLAGS,4,2       ## @PEM_CLEAR_INFO_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware revision %d.%d.%d\n"

	.comm	_pem_group,4,2                  ## @pem_group
	.comm	_PEM_READ_INPUT_STRING,4,2      ## @PEM_READ_INPUT_STRING
	.comm	_pem_input_group,4,2            ## @pem_input_group
	.comm	_PEM_READ_FAN_SPEED,4,2         ## @PEM_READ_FAN_SPEED
	.comm	_pem_fan_group,4,2              ## @pem_fan_group
	.no_dead_strip	_pem_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pem_probe
_pem_probe:                             ; @pem_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _I2C_FUNC_SMBUS_BLOCK_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BLOCK_DATA@GOTPAGEOFF]
	ldr	x0, [x0, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_12
; %bb.1:
	add	x20, x19, #4
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
	str	x19, [x0, #56]
	add	x0, x0, #48
	bl	_mutex_init
Lloh9:
	adrp	x8, _PEM_READ_FIRMWARE_REV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PEM_READ_FIRMWARE_REV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x21, #40]
	mov	x0, x19
	mov	w3, #8
	bl	_pem_read_block
	tbnz	w0, #31, LBB0_15
; %bb.3:
Lloh12:
	adrp	x8, _PEM_CLEAR_INFO_FLAGS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PEM_CLEAR_INFO_FLAGS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_15
; %bb.4:
	ldr	x8, [x21, #40]
	ldp	x2, x3, [x8]
	ldr	x4, [x8, #16]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh17:
	adrp	x8, _pem_group@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pem_group@GOTPAGEOFF]
	ldr	x9, [x21, #8]
	str	x8, [x9]
Lloh19:
	adrp	x22, _PEM_READ_INPUT_STRING@GOTPAGE
Lloh20:
	ldr	x22, [x22, _PEM_READ_INPUT_STRING@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x2, [x21, #32]
	mov	x0, x19
	mov	w3, #7
	bl	_pem_read_block
	cbz	w0, LBB0_16
; %bb.5:
	tbz	w0, #31, LBB0_21
; %bb.6:
	ldr	w1, [x22]
	ldr	x2, [x21, #32]
	mov	x0, x19
	mov	w3, #8
	bl	_pem_read_block
	cbnz	w0, LBB0_21
; %bb.7:
	ldr	x8, [x21, #32]
	ldr	x9, [x8]
	cbnz	x9, LBB0_11
; %bb.8:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_11
; %bb.9:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_11
; %bb.10:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_21
LBB0_11:
	mov	w8, #8
	b	LBB0_20
LBB0_12:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x8, [x21, #32]
	ldr	x9, [x8]
	cbnz	x9, LBB0_19
; %bb.17:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_19
; %bb.18:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_21
LBB0_19:
	mov	w8, #7
LBB0_20:
	str	w8, [x21, #24]
LBB0_21:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_23
; %bb.22:
	ldr	x8, [x21, #8]
Lloh25:
	adrp	x9, _pem_input_group@GOTPAGE
Lloh26:
	ldr	x9, [x9, _pem_input_group@GOTPAGEOFF]
	str	x9, [x8, #8]
	mov	w22, #2
	b	LBB0_24
LBB0_23:
	mov	w22, #1
LBB0_24:
Lloh27:
	adrp	x8, _PEM_READ_FAN_SPEED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PEM_READ_FAN_SPEED@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x2, [x21, #16]
	mov	x0, x19
	mov	w3, #8
	bl	_pem_read_block
	cbnz	w0, LBB0_30
; %bb.25:
	ldr	x8, [x21, #16]
	ldr	x9, [x8]
	cbnz	x9, LBB0_29
; %bb.26:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_29
; %bb.27:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_29
; %bb.28:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_30
LBB0_29:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x21, #8]
Lloh30:
	adrp	x9, _pem_fan_group@GOTPAGE
Lloh31:
	ldr	x9, [x9, _pem_fan_group@GOTPAGEOFF]
	str	x9, [x8, x22, lsl #3]
LBB0_30:
	ldr	w1, [x19]
	ldr	x3, [x21, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BLOCK_DATA,4,2  ; @I2C_FUNC_SMBUS_BLOCK_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ; @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PEM_READ_FIRMWARE_REV,4,2      ; @PEM_READ_FIRMWARE_REV
	.comm	_PEM_CLEAR_INFO_FLAGS,4,2       ; @PEM_CLEAR_INFO_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware revision %d.%d.%d\n"

	.comm	_pem_group,4,2                  ; @pem_group
	.comm	_PEM_READ_INPUT_STRING,4,2      ; @PEM_READ_INPUT_STRING
	.comm	_pem_input_group,4,2            ; @pem_input_group
	.comm	_PEM_READ_FAN_SPEED,4,2         ; @PEM_READ_FAN_SPEED
	.comm	_pem_fan_group,4,2              ; @pem_fan_group
	.no_dead_strip	_pem_probe
.subsections_via_symbols
