	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmbus_do_probe                 ## -- Begin function pmbus_do_probe
	.p2align	4, 0x90
_pmbus_do_probe:                        ## @pmbus_do_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r12
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%r12), %edi
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	$-1, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %r13
	cmpq	$0, 8(%rax,%rcx,8)
	movq	%r13, %rcx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	xorl	%r13d, %r13d
LBB0_10:
	leaq	2(%r13), %rsi
	movl	(%r14), %ecx
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, 40(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_13:
	movq	%r15, 24(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_pmbus_init_common
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pmbus_find_attributes
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_16
LBB0_24:
	movl	(%rbx), %edi
	callq	_kfree
	jmp	LBB0_25
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_25
LBB0_16:
	cmpl	$0, 16(%rbx)
	movq	%rbx, %r14
	je	LBB0_17
## %bb.18:
	movq	8(%r14), %rax
	movq	%r14, (%rax)
	movq	8(%r14), %rdi
	addq	$8, %rdi
	movq	(%r15), %rsi
	shll	$3, %r13d
	movl	%r13d, %edx
	callq	_memcpy
	movl	(%r12), %esi
	movq	8(%r14), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_hwmon_device_register_with_groups
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movq	%r14, %rcx
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	callq	_dev_err
	jmp	LBB0_24
LBB0_17:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_24
LBB0_20:
	movq	%r14, %rdi
	callq	_pmbus_regulator_register
	movq	%r14, %rsi
	testl	%eax, %eax
	je	LBB0_21
## %bb.23:
	movl	%eax, %r14d
	movq	%rsi, %rbx
	movl	4(%rsi), %edi
	callq	_hwmon_device_unregister
	jmp	LBB0_24
LBB0_21:
	movq	%r12, %rdi
	callq	_pmbus_init_debugfs
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_25
## %bb.22:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ## @I2C_FUNC_SMBUS_WRITE_BYTE
	.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	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No attributes found\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to register hwmon device\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register debugfs\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmbus_do_probe                 ; -- Begin function pmbus_do_probe
	.p2align	2
_pmbus_do_probe:                        ; @pmbus_do_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x22, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_i2c_check_functionality
	cbz	w0, LBB0_7
; %bb.2:
Lloh9:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x20, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x9, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x9, lsl #3]
	add	x9, x9, #1
	cbnz	x10, LBB0_5
; %bb.6:
	sub	x24, x9, #1
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	mov	x24, #0
LBB0_9:
	add	x1, x24, #2
	ldr	w3, [x25]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_15
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #48
	bl	_mutex_init
	str	x19, [x20, #40]
	cbz	x23, LBB0_12
; %bb.11:
	ldr	w8, [x23]
	str	w8, [x20, #32]
LBB0_12:
	str	x22, [x20, #24]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_pmbus_init_common
	tbnz	w0, #31, LBB0_18
; %bb.13:
	mov	x0, x21
	mov	x1, x20
	bl	_pmbus_find_attributes
	mov	x23, x0
	cbz	w0, LBB0_19
LBB0_14:
	ldr	w0, [x20]
	bl	_kfree
	b	LBB0_17
LBB0_15:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x23, x0
	b	LBB0_17
LBB0_19:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_22
; %bb.20:
	ldr	x8, [x20, #8]
	str	x20, [x8]
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	ldr	x1, [x22]
	lsl	w2, w24, #3
	bl	_memcpy
	ldr	w1, [x21]
	ldr	x3, [x20, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_hwmon_device_register_with_groups
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.21:
	ldr	w0, [x20, #4]
	bl	_PTR_ERR
	mov	x23, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_22:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_23:
	mov	x0, x20
	bl	_pmbus_regulator_register
	cbz	w0, LBB0_25
; %bb.24:
	mov	x23, x0
	ldr	w0, [x20, #4]
	bl	_hwmon_device_unregister
	b	LBB0_14
LBB0_25:
	mov	x0, x21
	mov	x1, x20
	bl	_pmbus_init_debugfs
	cbz	w0, LBB0_27
; %bb.26:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_27:
	mov	w23, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ; @I2C_FUNC_SMBUS_WRITE_BYTE
	.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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No attributes found\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to register hwmon device\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register debugfs\n"

.subsections_via_symbols
