	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menf21bmc_probe
_menf21bmc_probe:                       ## @menf21bmc_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_BYTE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_BMC_CMD_REV_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	_BMC_CMD_REV_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_BMC_CMD_REV_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_dev_info
	movq	%r14, %rdi
	callq	_menf21bmc_wdt_exit_prod_mode
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	_menf21bmc_cell@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r12d, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ## @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ## @I2C_FUNC_SMBUS_BYTE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BMC_CMD_REV_MAJOR,4,2          ## @BMC_CMD_REV_MAJOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get BMC major revision\n"

	.comm	_BMC_CMD_REV_MINOR,4,2          ## @BMC_CMD_REV_MINOR
L_.str.1:                               ## @.str.1
	.asciz	"failed to get BMC minor revision\n"

	.comm	_BMC_CMD_REV_MAIN,4,2           ## @BMC_CMD_REV_MAIN
L_.str.2:                               ## @.str.2
	.asciz	"failed to get BMC main revision\n"

L_.str.3:                               ## @.str.3
	.asciz	"FW Revision: %02d.%02d.%02d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to leave production mode\n"

	.comm	_menf21bmc_cell,4,2             ## @menf21bmc_cell
L_.str.5:                               ## @.str.5
	.asciz	"failed to add BMC sub-devices\n"

	.no_dead_strip	_menf21bmc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menf21bmc_probe
_menf21bmc_probe:                       ; @menf21bmc_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
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I2C_FUNC_SMBUS_BYTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_BYTE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_i2c_check_functionality
	cbz	w0, LBB0_7
; %bb.1:
Lloh9:
	adrp	x8, _BMC_CMD_REV_MAJOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMC_CMD_REV_MAJOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_word_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh12:
	adrp	x8, _BMC_CMD_REV_MINOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMC_CMD_REV_MINOR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_word_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh15:
	adrp	x8, _BMC_CMD_REV_MAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMC_CMD_REV_MAIN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_dev_info
	mov	x0, x19
	bl	_menf21bmc_wdt_exit_prod_mode
	tbnz	w0, #31, LBB0_14
; %bb.5:
Lloh20:
	adrp	x8, _menf21bmc_cell@GOTPAGE
Lloh21:
	ldr	x8, [x8, _menf21bmc_cell@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	w20, #0
	tbz	w0, #31, LBB0_13
; %bb.6:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_8:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_10:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
	b	LBB0_13
LBB0_12:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x22
LBB0_13:
	mov	x0, x20
	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_14:
	mov	x20, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ; @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ; @I2C_FUNC_SMBUS_BYTE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BMC_CMD_REV_MAJOR,4,2          ; @BMC_CMD_REV_MAJOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get BMC major revision\n"

	.comm	_BMC_CMD_REV_MINOR,4,2          ; @BMC_CMD_REV_MINOR
l_.str.1:                               ; @.str.1
	.asciz	"failed to get BMC minor revision\n"

	.comm	_BMC_CMD_REV_MAIN,4,2           ; @BMC_CMD_REV_MAIN
l_.str.2:                               ; @.str.2
	.asciz	"failed to get BMC main revision\n"

l_.str.3:                               ; @.str.3
	.asciz	"FW Revision: %02d.%02d.%02d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to leave production mode\n"

	.comm	_menf21bmc_cell,4,2             ; @menf21bmc_cell
l_.str.5:                               ; @.str.5
	.asciz	"failed to add BMC sub-devices\n"

	.no_dead_strip	_menf21bmc_probe
.subsections_via_symbols
