	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl518_probe
_gl518_probe:                           ## @gl518_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	_GL518_REG_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gl518_read_value
	movq	_gl518sm_r80@GOTPCREL(%rip), %r12
	movq	%r12, %rcx
	cmpl	$128, %eax
	je	LBB0_3
## %bb.2:
	movq	_gl518sm_r00@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movl	$255, 8(%rbx)
	movq	%r15, %rdi
	callq	_gl518_init_client
	movq	16(%rbx), %rax
	movq	_gl518_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.4:
	movq	16(%rbx), %rax
	movq	_gl518_group_r80@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
LBB0_5:
	movl	(%r15), %esi
	movq	16(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GL518_REG_REVISION,4,2         ## @GL518_REG_REVISION
	.comm	_gl518sm_r80,8,3                ## @gl518sm_r80
	.comm	_gl518sm_r00,8,3                ## @gl518sm_r00
	.comm	_gl518_group,4,2                ## @gl518_group
	.comm	_gl518_group_r80,4,2            ## @gl518_group_r80
	.no_dead_strip	_gl518_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl518_probe
_gl518_probe:                           ; @gl518_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	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, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #32]
Lloh3:
	adrp	x8, _GL518_REG_REVISION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL518_REG_REVISION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gl518_read_value
Lloh6:
	adrp	x22, _gl518sm_r80@GOTPAGE
Lloh7:
	ldr	x22, [x22, _gl518sm_r80@GOTPAGEOFF]
Lloh8:
	adrp	x8, _gl518sm_r00@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gl518sm_r00@GOTPAGEOFF]
	cmp	w0, #128
	csel	x8, x22, x8, eq
	ldr	x8, [x8]
	str	x8, [x21]
	add	x0, x21, #24
	bl	_mutex_init
	mov	w8, #255
	str	w8, [x21, #8]
	mov	x0, x20
	bl	_gl518_init_client
	ldr	x8, [x21, #16]
Lloh10:
	adrp	x9, _gl518_group@GOTPAGE
Lloh11:
	ldr	x9, [x9, _gl518_group@GOTPAGEOFF]
	str	x9, [x8]
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21, #16]
Lloh12:
	adrp	x9, _gl518_group_r80@GOTPAGE
Lloh13:
	ldr	x9, [x9, _gl518_group_r80@GOTPAGEOFF]
	str	x9, [x8, #8]
LBB0_3:
	ldr	w1, [x20]
	ldr	x3, [x21, #16]
	mov	x0, x19
	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
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GL518_REG_REVISION,4,2         ; @GL518_REG_REVISION
	.comm	_gl518sm_r80,8,3                ; @gl518sm_r80
	.comm	_gl518sm_r00,8,3                ; @gl518sm_r00
	.comm	_gl518_group,4,2                ; @gl518_group
	.comm	_gl518_group_r80,4,2            ; @gl518_group_r80
	.no_dead_strip	_gl518_probe
.subsections_via_symbols
