	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl520_probe
_gl520_probe:                           ## @gl520_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_gl520_init_client
	movq	_gl520_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.4:
	movq	_sensor_dev_attr_temp2_input@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	movq	_sensor_dev_attr_temp2_max@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.6:
	movq	_sensor_dev_attr_temp2_max_hyst@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:
	movq	_sensor_dev_attr_temp2_alarm@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movq	_sensor_dev_attr_temp2_beep@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_9:
	movq	_sensor_dev_attr_in4_input@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movq	_sensor_dev_attr_in4_min@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	_sensor_dev_attr_in4_max@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	_sensor_dev_attr_in4_alarm@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	_sensor_dev_attr_in4_beep@GOTPCREL(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	callq	_hwmon_device_register
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movl	(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_18:
	movq	_gl520_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	_gl520_group_opt@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
LBB0_19:
	movq	%r15, %rdi
	callq	_kfree
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gl520_group,4,2                ## @gl520_group
	.comm	_sensor_dev_attr_temp2_input,4,2 ## @sensor_dev_attr_temp2_input
	.comm	_sensor_dev_attr_temp2_max,4,2  ## @sensor_dev_attr_temp2_max
	.comm	_sensor_dev_attr_temp2_max_hyst,4,2 ## @sensor_dev_attr_temp2_max_hyst
	.comm	_sensor_dev_attr_temp2_alarm,4,2 ## @sensor_dev_attr_temp2_alarm
	.comm	_sensor_dev_attr_temp2_beep,4,2 ## @sensor_dev_attr_temp2_beep
	.comm	_sensor_dev_attr_in4_input,4,2  ## @sensor_dev_attr_in4_input
	.comm	_sensor_dev_attr_in4_min,4,2    ## @sensor_dev_attr_in4_min
	.comm	_sensor_dev_attr_in4_max,4,2    ## @sensor_dev_attr_in4_max
	.comm	_sensor_dev_attr_in4_alarm,4,2  ## @sensor_dev_attr_in4_alarm
	.comm	_sensor_dev_attr_in4_beep,4,2   ## @sensor_dev_attr_in4_beep
	.comm	_gl520_group_opt,4,2            ## @gl520_group_opt
	.no_dead_strip	_gl520_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl520_probe
_gl520_probe:                           ; @gl520_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, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #16
	bl	_mutex_init
	mov	x0, x19
	bl	_gl520_init_client
Lloh3:
	adrp	x1, _gl520_group@GOTPAGE
Lloh4:
	ldr	x1, [x1, _gl520_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.3:
Lloh5:
	adrp	x1, _sensor_dev_attr_temp2_input@GOTPAGE
Lloh6:
	ldr	x1, [x1, _sensor_dev_attr_temp2_input@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.4:
Lloh7:
	adrp	x1, _sensor_dev_attr_temp2_max@GOTPAGE
Lloh8:
	ldr	x1, [x1, _sensor_dev_attr_temp2_max@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.5:
Lloh9:
	adrp	x1, _sensor_dev_attr_temp2_max_hyst@GOTPAGE
Lloh10:
	ldr	x1, [x1, _sensor_dev_attr_temp2_max_hyst@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.6:
Lloh11:
	adrp	x1, _sensor_dev_attr_temp2_alarm@GOTPAGE
Lloh12:
	ldr	x1, [x1, _sensor_dev_attr_temp2_alarm@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.7:
Lloh13:
	adrp	x1, _sensor_dev_attr_temp2_beep@GOTPAGE
Lloh14:
	ldr	x1, [x1, _sensor_dev_attr_temp2_beep@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_9:
Lloh18:
	adrp	x1, _sensor_dev_attr_in4_input@GOTPAGE
Lloh19:
	ldr	x1, [x1, _sensor_dev_attr_in4_input@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.10:
Lloh20:
	adrp	x1, _sensor_dev_attr_in4_min@GOTPAGE
Lloh21:
	ldr	x1, [x1, _sensor_dev_attr_in4_min@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.11:
Lloh22:
	adrp	x1, _sensor_dev_attr_in4_max@GOTPAGE
Lloh23:
	ldr	x1, [x1, _sensor_dev_attr_in4_max@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.12:
Lloh24:
	adrp	x1, _sensor_dev_attr_in4_alarm@GOTPAGE
Lloh25:
	ldr	x1, [x1, _sensor_dev_attr_in4_alarm@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.13:
Lloh26:
	adrp	x1, _sensor_dev_attr_in4_beep@GOTPAGE
Lloh27:
	ldr	x1, [x1, _sensor_dev_attr_in4_beep@GOTPAGEOFF]
LBB0_14:
	mov	x0, x19
	bl	_device_create_file
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_hwmon_device_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.16:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_17:
Lloh28:
	adrp	x1, _gl520_group@GOTPAGE
Lloh29:
	ldr	x1, [x1, _gl520_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
Lloh30:
	adrp	x1, _gl520_group_opt@GOTPAGE
Lloh31:
	ldr	x1, [x1, _gl520_group_opt@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
LBB0_18:
	mov	x0, x20
	bl	_kfree
LBB0_19:
	mov	x0, x21
	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_20:
	mov	w21, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gl520_group,4,2                ; @gl520_group
	.comm	_sensor_dev_attr_temp2_input,4,2 ; @sensor_dev_attr_temp2_input
	.comm	_sensor_dev_attr_temp2_max,4,2  ; @sensor_dev_attr_temp2_max
	.comm	_sensor_dev_attr_temp2_max_hyst,4,2 ; @sensor_dev_attr_temp2_max_hyst
	.comm	_sensor_dev_attr_temp2_alarm,4,2 ; @sensor_dev_attr_temp2_alarm
	.comm	_sensor_dev_attr_temp2_beep,4,2 ; @sensor_dev_attr_temp2_beep
	.comm	_sensor_dev_attr_in4_input,4,2  ; @sensor_dev_attr_in4_input
	.comm	_sensor_dev_attr_in4_min,4,2    ; @sensor_dev_attr_in4_min
	.comm	_sensor_dev_attr_in4_max,4,2    ; @sensor_dev_attr_in4_max
	.comm	_sensor_dev_attr_in4_alarm,4,2  ; @sensor_dev_attr_in4_alarm
	.comm	_sensor_dev_attr_in4_beep,4,2   ; @sensor_dev_attr_in4_beep
	.comm	_gl520_group_opt,4,2            ; @gl520_group_opt
	.no_dead_strip	_gl520_probe
.subsections_via_symbols
