	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_hwmon_init               ## -- Begin function mlxsw_hwmon_init
	.p2align	4, 0x90
_mlxsw_hwmon_init:                      ## @mlxsw_hwmon_init
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, 32(%rax)
	movq	%r15, 24(%rax)
	movq	%rax, %rdi
	callq	_mlxsw_hwmon_temp_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	%r12, %rdi
	callq	_mlxsw_hwmon_fans_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_mlxsw_hwmon_module_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_mlxsw_hwmon_gearbox_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rax
	addq	$20, %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movl	16(%r12), %eax
	movl	%eax, 20(%r12)
	movl	(%r15), %edi
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_hwmon_device_register_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_8:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, (%r12)
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlxsw"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_hwmon_init               ; -- Begin function mlxsw_hwmon_init
	.p2align	2
_mlxsw_hwmon_init:                      ; @mlxsw_hwmon_init
	.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, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	stp	x21, x22, [x0, #24]
	bl	_mlxsw_hwmon_temp_init
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_mlxsw_hwmon_fans_init
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_mlxsw_hwmon_module_init
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_mlxsw_hwmon_gearbox_init
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w9, [x19, #16]
	mov	x10, x19
	str	w9, [x10, #20]!
	str	x10, [x8]
	ldr	w0, [x21]
	ldr	x3, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_hwmon_device_register_with_groups
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
LBB0_7:
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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_10:
	mov	w22, #0
	str	x21, [x19]
	str	x19, [x20]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlxsw"

.subsections_via_symbols
