	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbs_probe
_sbs_probe:                             ## @sbs_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movl	4(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	%rbx, -64(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	_sbs_regmap@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	12(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	movq	_SBS_CHARGER_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_5:
	movl	-48(%rbp), %eax
	movl	%eax, (%rbx)
	movq	_sbs_desc@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_devm_power_supply_register
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_7:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:
	movq	_sbs_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	addq	$4, %rbx
	movq	_sbs_delayed_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_SBS_CHARGER_POLL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_11:
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sbs_regmap,4,2                 ## @sbs_regmap
	.comm	_SBS_CHARGER_REG_STATUS,4,2     ## @SBS_CHARGER_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get device status\n"

	.comm	_sbs_desc,4,2                   ## @sbs_desc
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register power supply\n"

	.comm	_sbs_irq_thread,4,2             ## @sbs_irq_thread
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request irq, %d\n"

	.comm	_sbs_delayed_work,4,2           ## @sbs_delayed_work
	.comm	_SBS_CHARGER_POLL_TIME,4,2      ## @SBS_CHARGER_POLL_TIME
L_.str.3:                               ## @.str.3
	.asciz	"%s: smart charger device registered\n"

	.no_dead_strip	_sbs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbs_probe
_sbs_probe:                             ; @sbs_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	str	xzr, [sp, #24]
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #16]
	ldr	w8, [x20, #4]
	str	w8, [sp, #24]
	str	x0, [sp, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh3:
	adrp	x1, _sbs_regmap@GOTPAGE
Lloh4:
	ldr	x1, [x1, _sbs_regmap@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x21, #12]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #12]
	cbz	x8, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_4:
Lloh8:
	adrp	x8, _SBS_CHARGER_REG_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SBS_CHARGER_REG_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_7:
	ldr	w8, [sp, #12]
	str	w8, [x21]
Lloh13:
	adrp	x1, _sbs_desc@GOTPAGE
Lloh14:
	ldr	x1, [x1, _sbs_desc@GOTPAGEOFF]
	add	x2, sp, #16
	mov	x0, x19
	bl	_devm_power_supply_register
	str	w0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x21, #8]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_14
LBB0_9:
	ldr	x22, [x20, #8]
	cbz	x22, LBB0_12
; %bb.10:
Lloh17:
	adrp	x8, _sbs_irq_thread@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sbs_irq_thread@GOTPAGEOFF]
Lloh19:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
Lloh22:
	ldr	w8, [x9]
Lloh23:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x3, x23
	mov	x4, x24
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_12:
	add	x21, x21, #4
Lloh28:
	adrp	x8, _sbs_delayed_work@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sbs_delayed_work@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh31:
	adrp	x8, _SBS_CHARGER_POLL_TIME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SBS_CHARGER_POLL_TIME@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_schedule_delayed_work
LBB0_13:
	ldr	w2, [x20]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w22, #0
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sbs_regmap,4,2                 ; @sbs_regmap
	.comm	_SBS_CHARGER_REG_STATUS,4,2     ; @SBS_CHARGER_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get device status\n"

	.comm	_sbs_desc,4,2                   ; @sbs_desc
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register power supply\n"

	.comm	_sbs_irq_thread,4,2             ; @sbs_irq_thread
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request irq, %d\n"

	.comm	_sbs_delayed_work,4,2           ; @sbs_delayed_work
	.comm	_SBS_CHARGER_POLL_TIME,4,2      ; @SBS_CHARGER_POLL_TIME
l_.str.3:                               ; @.str.3
	.asciz	"%s: smart charger device registered\n"

	.no_dead_strip	_sbs_probe
.subsections_via_symbols
