	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_pctl_probe
_axp20x_pctl_probe:                     ## @axp20x_pctl_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
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$96, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, 8(%r12)
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	%r14, 56(%r12)
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rax, 48(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	_axp20x_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_axp20x_gpio_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_axp20x_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_axp20x_gpio_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_axp20x_gpio_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, (%r12)
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	(%r15), %eax
	movl	%eax, 88(%r12)
	movq	%r14, 80(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_axp20x_build_funcs_groups
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_THIS_MODULE@GOTPCREL(%rip), %r15
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rax, 40(%rbx)
	movq	(%r15), %rax
	movq	%rax, 32(%rbx)
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_axp20x_pctrl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_axp20x_pmx_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_devm_pinctrl_register
	movl	%eax, 72(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	72(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_14:
	movq	%r14, %rdi
	callq	_dev_name
	movq	(%r12), %rdx
	movq	8(%rdx), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %r8d
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ecx, %edx
	callq	_gpiochip_add_pin_range
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_9
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parent drvdata not set\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
	.comm	_THIS_MODULE,8,3                ## @THIS_MODULE
	.comm	_axp20x_gpio_get,4,2            ## @axp20x_gpio_get
	.comm	_axp20x_gpio_get_direction,4,2  ## @axp20x_gpio_get_direction
	.comm	_axp20x_gpio_set,4,2            ## @axp20x_gpio_set
	.comm	_axp20x_gpio_input,4,2          ## @axp20x_gpio_input
	.comm	_axp20x_gpio_output,4,2         ## @axp20x_gpio_output
L_.str.1:                               ## @.str.1
	.asciz	"failed to build groups\n"

	.comm	_axp20x_pctrl_ops,4,2           ## @axp20x_pctrl_ops
	.comm	_axp20x_pmx_ops,4,2             ## @axp20x_pmx_ops
L_.str.2:                               ## @.str.2
	.asciz	"couldn't register pinctrl driver\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to register GPIO chip\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to add pin range\n"

L_.str.5:                               ## @.str.5
	.asciz	"AXP209 pinctrl and GPIO driver loaded\n"

	.no_dead_strip	_axp20x_pctl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function axp20x_pctl_probe
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_axp20x_pctl_probe:                     ; @axp20x_pctl_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	w0, [x19]
	bl	_of_device_is_available
	cbz	w0, LBB0_6
; %bb.1:
	cbz	x22, LBB0_7
; %bb.2:
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #96
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x21, x0
	str	d0, [x21, #8]!
Lloh4:
	adrp	x8, _gpiochip_generic_request@GOTPAGE
Lloh5:
	ldr	x8, [x8, _gpiochip_generic_request@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _gpiochip_generic_free@GOTPAGE
Lloh8:
	ldr	x9, [x9, _gpiochip_generic_free@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #64]
	str	x19, [x0, #56]
	mov	x0, x19
	bl	_dev_name
Lloh10:
	adrp	x24, _THIS_MODULE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _THIS_MODULE@GOTPAGEOFF]
	ldr	x8, [x24]
	stp	x8, x0, [x20, #40]
Lloh12:
	adrp	x8, _axp20x_gpio_get@GOTPAGE
Lloh13:
	ldr	x8, [x8, _axp20x_gpio_get@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #36]
Lloh15:
	adrp	x8, _axp20x_gpio_get_direction@GOTPAGE
Lloh16:
	ldr	x8, [x8, _axp20x_gpio_get_direction@GOTPAGEOFF]
Lloh17:
	adrp	x9, _axp20x_gpio_set@GOTPAGE
Lloh18:
	ldr	x9, [x9, _axp20x_gpio_set@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #28]
Lloh21:
	adrp	x8, _axp20x_gpio_input@GOTPAGE
Lloh22:
	ldr	x8, [x8, _axp20x_gpio_input@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _axp20x_gpio_output@GOTPAGE
Lloh25:
	ldr	x9, [x9, _axp20x_gpio_output@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20]
	ldr	w8, [x0]
	str	w8, [x20, #16]
	ldr	w8, [x22]
	str	w8, [x20, #88]
	str	x19, [x20, #80]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_axp20x_build_funcs_groups
	cbz	w0, LBB0_8
; %bb.4:
	mov	x22, x0
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_6:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.9:
	mov	x22, x0
	mov	x0, x19
	bl	_dev_name
	str	x0, [x22, #40]
	ldr	x8, [x24]
	ldr	x9, [x20]
	ldr	x10, [x9, #8]
	stp	x10, x8, [x22, #24]
	ldr	w8, [x9]
	str	w8, [x22, #16]
Lloh35:
	adrp	x8, _axp20x_pctrl_ops@GOTPAGE
Lloh36:
	ldr	x8, [x8, _axp20x_pctrl_ops@GOTPAGEOFF]
Lloh37:
	adrp	x9, _axp20x_pmx_ops@GOTPAGE
Lloh38:
	ldr	x9, [x9, _axp20x_pmx_ops@GOTPAGEOFF]
	stp	x9, x8, [x22]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_devm_pinctrl_register
	str	w0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.10:
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #72]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_11:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_16:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w2, [x9]
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, x2
	bl	_gpiochip_add_pin_range
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.17:
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_18:
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parent drvdata not set\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
	.comm	_THIS_MODULE,8,3                ; @THIS_MODULE
	.comm	_axp20x_gpio_get,4,2            ; @axp20x_gpio_get
	.comm	_axp20x_gpio_get_direction,4,2  ; @axp20x_gpio_get_direction
	.comm	_axp20x_gpio_set,4,2            ; @axp20x_gpio_set
	.comm	_axp20x_gpio_input,4,2          ; @axp20x_gpio_input
	.comm	_axp20x_gpio_output,4,2         ; @axp20x_gpio_output
l_.str.1:                               ; @.str.1
	.asciz	"failed to build groups\n"

	.comm	_axp20x_pctrl_ops,4,2           ; @axp20x_pctrl_ops
	.comm	_axp20x_pmx_ops,4,2             ; @axp20x_pmx_ops
l_.str.2:                               ; @.str.2
	.asciz	"couldn't register pinctrl driver\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to register GPIO chip\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to add pin range\n"

l_.str.5:                               ; @.str.5
	.asciz	"AXP209 pinctrl and GPIO driver loaded\n"

	.no_dead_strip	_axp20x_pctl_probe
.subsections_via_symbols
