	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max14656_probe
_max14656_probe:                        ## @max14656_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	4(%rdi), %r14
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	%rax, -48(%rbp)
	movq	%rbx, 40(%rax)
	movq	$0, 32(%rax)
	movq	_MAX14656_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 28(%r15)
	movq	_POWER_SUPPLY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_max14656_battery_props@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r15)
	movq	_max14656_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r12d, (%r15)
	movq	%r15, %rdi
	callq	_max14656_hw_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	12(%r15), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_devm_power_supply_register
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_15:
	movq	%r15, %r12
	addq	$4, %r12
	movq	_max14656_irq_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_stop_irq_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_17:
	movl	(%r15), %esi
	movq	_max14656_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	(%r15), %edx
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_19:
	movl	%edx, %edi
	callq	_enable_irq_wake
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid irq number: %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
L_.str.1:                               ## @.str.1
	.asciz	"No support for SMBUS_BYTE_DATA\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX14656_NAME,4,2              ## @MAX14656_NAME
	.comm	_POWER_SUPPLY_TYPE_UNKNOWN,4,2  ## @POWER_SUPPLY_TYPE_UNKNOWN
	.comm	_max14656_battery_props,4,2     ## @max14656_battery_props
	.comm	_max14656_get_property,4,2      ## @max14656_get_property
L_.str.2:                               ## @.str.2
	.asciz	"power_supply_register failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_max14656_irq_worker,4,2        ## @max14656_irq_worker
	.comm	_stop_irq_work,4,2              ## @stop_irq_work
L_.str.3:                               ## @.str.3
	.asciz	"devm_add_action %d failed\n"

	.comm	_max14656_irq,4,2               ## @max14656_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.4:                               ## @.str.4
	.asciz	"request_irq %d failed\n"

	.no_dead_strip	_max14656_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max14656_probe
_max14656_probe:                        ; @max14656_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	add	x19, x0, #4
	ldr	w22, [x0]
	cmp	w22, #0
	b.le	LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x20, x0
	str	x0, [sp, #8]
	stp	xzr, x21, [x0, #32]
Lloh6:
	adrp	x23, _MAX14656_NAME@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MAX14656_NAME@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x0, #28]
Lloh8:
	adrp	x8, _POWER_SUPPLY_TYPE_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _max14656_battery_props@GOTPAGE
Lloh12:
	ldr	x9, [x9, _max14656_battery_props@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #20]
	bl	_ARRAY_SIZE
Lloh14:
	adrp	x8, _max14656_get_property@GOTPAGE
Lloh15:
	ldr	x8, [x8, _max14656_get_property@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #12]!
	str	w0, [x20, #16]
	str	w22, [x20]
	mov	x0, x20
	bl	_max14656_hw_init
	cbnz	w0, LBB0_10
; %bb.4:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_devm_power_supply_register
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.5:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	str	x22, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_13:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
	add	x21, x20, #4
Lloh29:
	adrp	x8, _max14656_irq_worker@GOTPAGE
Lloh30:
	ldr	x8, [x8, _max14656_irq_worker@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh32:
	adrp	x8, _stop_irq_work@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stop_irq_work@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
	str	x22, [sp]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_16:
Lloh37:
	adrp	x8, _max14656_irq@GOTPAGE
Lloh38:
	ldr	x8, [x8, _max14656_irq@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	ldr	w4, [x23]
	mov	x0, x19
	mov	x5, x20
	bl	_devm_request_irq
	mov	x8, x0
	ldr	w0, [x20]
	cbz	w8, LBB0_18
; %bb.17:
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_18:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_enable_irq_wake
	mov	w0, #2000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_schedule_delayed_work
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid irq number: %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
l_.str.1:                               ; @.str.1
	.asciz	"No support for SMBUS_BYTE_DATA\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX14656_NAME,4,2              ; @MAX14656_NAME
	.comm	_POWER_SUPPLY_TYPE_UNKNOWN,4,2  ; @POWER_SUPPLY_TYPE_UNKNOWN
	.comm	_max14656_battery_props,4,2     ; @max14656_battery_props
	.comm	_max14656_get_property,4,2      ; @max14656_get_property
l_.str.2:                               ; @.str.2
	.asciz	"power_supply_register failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_max14656_irq_worker,4,2        ; @max14656_irq_worker
	.comm	_stop_irq_work,4,2              ; @stop_irq_work
l_.str.3:                               ; @.str.3
	.asciz	"devm_add_action %d failed\n"

	.comm	_max14656_irq,4,2               ; @max14656_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.4:                               ; @.str.4
	.asciz	"request_irq %d failed\n"

	.no_dead_strip	_max14656_probe
.subsections_via_symbols
