	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_gpio_probe
_pm8xxx_gpio_probe:                     ## @pm8xxx_gpio_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	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	%r12, 48(%rax)
	movq	%r12, %rdi
	callq	_device_get_match_data
	movq	%rax, (%r15)
	movl	4(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 96(%r15)
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	_pm8xxx_pinctrl_desc@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm0, 64(%r15)
	movups	%xmm1, 80(%r15)
	movq	(%r15), %rsi
	movq	%rsi, 64(%r15)
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$24, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	64(%r15), %rbx
	movq	(%rbx), %rsi
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.5:
	movq	%rax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_SSBI_REG_ADDR_GPIO
	movl	%eax, 4(%r13)
	movl	$-1, (%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_pm8xxx_pin_populate
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, -16(%r12)
	movq	_pm8xxx_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, (%r12)
	movq	%r13, -8(%r12)
	incq	%r14
	addq	$24, %r12
	addq	$8, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, (%rax)
	ja	LBB0_6
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 88(%r15)
	movq	_pm8xxx_gpio_bindings@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	movl	%eax, 80(%r15)
	movl	(%rbx), %eax
	movl	%eax, 76(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_devm_pinctrl_register
	movl	%eax, 60(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	60(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_16:
	movq	_pm8xxx_gpio_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%r15)
	movq	16(%rax), %rax
	movq	%rax, 32(%r15)
	movl	$-1, 16(%r15)
	movq	%rbx, 40(%r15)
	movl	(%rbx), %eax
	movl	%eax, 36(%r15)
	movl	$2, 20(%r15)
	movq	48(%r15), %rdi
	callq	_dev_name
	movl	%eax, 32(%r15)
	movq	(%r15), %rax
	movq	48(%r15), %rcx
	movq	%rax, 24(%r15)
	movl	(%rcx), %edi
	callq	_of_irq_find_parent
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_irq_find_host
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r14, %r14
	je	LBB0_22
## %bb.18:
	movq	%r15, %r12
	addq	$16, %r12
	movq	48(%r15), %rax
	movl	(%rax), %edi
	callq	_of_node_to_fwnode
	movl	%eax, 56(%r15)
	movq	24(%r15), %rdx
	movq	_pm8xxx_domain_ops@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %ecx
	movq	%r12, %r9
	callq	_irq_domain_create_hierarchy
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_24
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
LBB0_21:
	movl	8(%r15), %edi
	callq	_irq_domain_remove
	jmp	LBB0_14
LBB0_22:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_24:
	movq	48(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_26
LBB0_25:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_26:
	movq	48(%r15), %rdi
	callq	_dev_name
	movq	24(%r15), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_add_pin_range
	testl	%eax, %eax
	je	LBB0_25
## %bb.27:
	movl	%eax, %ebx
	movq	48(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_gpiochip_remove
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parent regmap unavailable\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_pm8xxx_pinctrl_desc,32,3       ## @pm8xxx_pinctrl_desc
	.comm	_pm8xxx_groups,8,3              ## @pm8xxx_groups
	.comm	_pm8xxx_gpio_bindings,4,2       ## @pm8xxx_gpio_bindings
L_.str.1:                               ## @.str.1
	.asciz	"couldn't register pm8xxx gpio driver\n"

	.comm	_pm8xxx_gpio_template,32,3      ## @pm8xxx_gpio_template
	.comm	_pm8xxx_domain_ops,4,2          ## @pm8xxx_domain_ops
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"failed register gpiochip\n"

L_.str.3:                               ## @.str.3
	.asciz	"gpio-ranges"

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

L_.str.5:                               ## @.str.5
	.asciz	"Qualcomm pm8xxx gpio driver probed\n"

	.comm	_pm8xxx_conf_items,4,2          ## @pm8xxx_conf_items
	.no_dead_strip	_pm8xxx_gpio_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 pm8xxx_gpio_probe
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pm8xxx_gpio_probe:                     ; @pm8xxx_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #48]
	mov	x0, x20
	bl	_device_get_match_data
	str	x0, [x19]
	ldr	w0, [x20, #4]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x19, #96]
	cbz	w0, LBB0_11
; %bb.2:
Lloh2:
	adrp	x8, _pm8xxx_pinctrl_desc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pm8xxx_pinctrl_desc@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19, #64]
	ldr	x1, [x19]
	str	x1, [x19, #64]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #24
	bl	_devm_kcalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
	add	x21, x19, #64
	ldr	x1, [x21]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x24, x0
	mov	x25, #0
	add	x26, x23, #8
	mov	w27, #-1
Lloh4:
	adrp	x28, _pm8xxx_groups@GOTPAGE
Lloh5:
	ldr	x28, [x28, _pm8xxx_groups@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_SSBI_REG_ADDR_GPIO
	stp	w27, w0, [x24]
	mov	x0, x19
	mov	x1, x24
	bl	_pm8xxx_pin_populate
	cbnz	w0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	w25, [x26, #-8]
	ldr	x8, [x28]
	ldr	w8, [x8, x25, lsl #2]
	str	w8, [x26, #8]
	str	x24, [x26], #24
	add	x25, x25, #1
	ldr	x8, [x21]
	add	x24, x24, #8
	cmp	x8, x25
	b.hi	LBB0_6
LBB0_8:
	str	x23, [x19, #88]
Lloh6:
	adrp	x22, _pm8xxx_gpio_bindings@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pm8xxx_gpio_bindings@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	ldr	w8, [x22]
	stp	w8, w0, [x19, #76]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_devm_pinctrl_register
	str	w0, [x19, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #60]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_12:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x22, x0
	b	LBB0_14
LBB0_16:
Lloh16:
	adrp	x8, _pm8xxx_gpio_template@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pm8xxx_gpio_template@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [x19, #16]
	stp	x9, x20, [x19, #32]
	ldr	w8, [x20]
	str	w8, [x19, #36]
Lloh18:
	adrp	x8, lCPI0_0@PAGE
Lloh19:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	ldr	x0, [x19, #48]
	bl	_dev_name
	str	w0, [x19, #32]
	ldr	x8, [x19]
	str	x8, [x19, #24]
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_of_irq_find_parent
	cbz	x0, LBB0_12
; %bb.17:
	mov	x21, x0
	bl	_irq_find_host
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x22, LBB0_12
; %bb.18:
	add	x21, x19, #16
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_of_node_to_fwnode
	mov	x3, x0
	str	w0, [x19, #56]
	ldr	x2, [x19, #24]
Lloh20:
	adrp	x4, _pm8xxx_domain_ops@GOTPAGE
Lloh21:
	ldr	x4, [x4, _pm8xxx_domain_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w1, #0
	mov	x5, x21
	bl	_irq_domain_create_hierarchy
	str	w0, [x19, #8]
	cbz	w0, LBB0_22
; %bb.19:
	mov	x0, x21
	mov	x1, x19
	bl	_gpiochip_add_data
	cbz	w0, LBB0_23
; %bb.20:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_21:
	ldr	w0, [x19, #8]
	bl	_irq_domain_remove
	b	LBB0_14
LBB0_22:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_23:
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_read_bool
	cbz	w0, LBB0_25
LBB0_24:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w22, #0
	b	LBB0_14
LBB0_25:
	ldr	x0, [x19, #48]
	bl	_dev_name
	mov	x1, x0
	ldr	x4, [x19, #24]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_gpiochip_add_pin_range
	cbz	w0, LBB0_24
; %bb.26:
	mov	x22, x0
	ldr	x0, [x19, #48]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	bl	_gpiochip_remove
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parent regmap unavailable\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_pm8xxx_pinctrl_desc,32,3       ; @pm8xxx_pinctrl_desc
	.comm	_pm8xxx_groups,8,3              ; @pm8xxx_groups
	.comm	_pm8xxx_gpio_bindings,4,2       ; @pm8xxx_gpio_bindings
l_.str.1:                               ; @.str.1
	.asciz	"couldn't register pm8xxx gpio driver\n"

	.comm	_pm8xxx_gpio_template,32,3      ; @pm8xxx_gpio_template
	.comm	_pm8xxx_domain_ops,4,2          ; @pm8xxx_domain_ops
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"failed register gpiochip\n"

l_.str.3:                               ; @.str.3
	.asciz	"gpio-ranges"

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

l_.str.5:                               ; @.str.5
	.asciz	"Qualcomm pm8xxx gpio driver probed\n"

	.comm	_pm8xxx_conf_items,4,2          ; @pm8xxx_conf_items
	.no_dead_strip	_pm8xxx_gpio_probe
.subsections_via_symbols
