	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_hotplug_probe
_mlxreg_hotplug_probe:                  ## @mlxreg_hotplug_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
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	12(%rax), %edi
	callq	_i2c_get_adapter
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rdi
	callq	_i2c_put_adapter
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rbx, (%r14)
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_17
LBB0_10:
	movl	8(%r12), %eax
	movl	%eax, 44(%r14)
	movl	(%r15), %eax
	movl	%eax, 40(%r14)
	movq	%r15, 32(%r14)
	movq	_mlxreg_hotplug_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	movl	(%r14), %edi
	callq	_disable_irq
	leaq	24(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	addq	$20, %rdi
	movq	_mlxreg_hotplug_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_mlxreg_hotplug_attr_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	16(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movl	12(%r14), %edi
	callq	_PTR_ERR
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	12(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_16:
	movq	%r14, %rdi
	callq	_mlxreg_hotplug_set_irq
	movl	$1, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get platform data.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxreg_hotplug_irq_handler,4,2 ## @mlxreg_hotplug_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"mlxreg-hotplug"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to request irq: %d\n"

	.comm	_mlxreg_hotplug_work_handler,4,2 ## @mlxreg_hotplug_work_handler
L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate attributes: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"mlxreg_hotplug"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register hwmon device %ld\n"

	.no_dead_strip	_mlxreg_hotplug_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_hotplug_probe
_mlxreg_hotplug_probe:                  ; @mlxreg_hotplug_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
	bl	_dev_get_platdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0, #12]
	bl	_i2c_get_adapter
	cbz	x0, LBB0_6
; %bb.2:
	bl	_i2c_put_adapter
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	x1, [x21]
	cbz	x1, LBB0_10
; %bb.4:
	str	x1, [x20]
	b	LBB0_11
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_9:
	mov	x0, x1
	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_10:
	mov	x0, x19
	bl	_platform_get_irq
	mov	x1, x0
	str	x0, [x20]
	tbnz	x0, #63, LBB0_9
LBB0_11:
	ldr	w8, [x21, #8]
	ldr	w9, [x19]
	stp	w9, w8, [x20, #40]
	str	x19, [x20, #32]
Lloh11:
	adrp	x8, _mlxreg_hotplug_irq_handler@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mlxreg_hotplug_irq_handler@GOTPAGEOFF]
Lloh13:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh20:
	adrp	x4, l_.str.1@PAGE
Lloh21:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x21, x20
	ldr	w0, [x21], #20
	bl	_disable_irq
	add	x0, x20, #24
	bl	_spin_lock_init
Lloh24:
	adrp	x8, _mlxreg_hotplug_work_handler@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mlxreg_hotplug_work_handler@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_mlxreg_hotplug_attr_init
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_err
	mov	x1, x21
	b	LBB0_9
LBB0_16:
	ldr	w3, [x20, #16]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_devm_hwmon_device_register_with_groups
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x20, #12]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #12]
	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
	b	_PTR_ERR
LBB0_18:
	mov	x0, x20
	bl	_mlxreg_hotplug_set_irq
	mov	w1, #0
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get platform data.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxreg_hotplug_irq_handler,4,2 ; @mlxreg_hotplug_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"mlxreg-hotplug"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to request irq: %d\n"

	.comm	_mlxreg_hotplug_work_handler,4,2 ; @mlxreg_hotplug_work_handler
l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate attributes: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"mlxreg_hotplug"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register hwmon device %ld\n"

	.no_dead_strip	_mlxreg_hotplug_probe
.subsections_via_symbols
