	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chv_pinctrl_probe
_chv_pinctrl_probe:                     ## @chv_pinctrl_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, %r15
	callq	_ACPI_COMPANION
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %r14
	movq	_chv_communities@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	12(%rax), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%r14)
LBB0_8:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, 32(%r14)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	24(%r14), %edi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movq	%r14, %rbx
	addq	$12, %rbx
	movq	_chv_pinctrl_desc@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 20(%r14)
	movq	(%rax), %rax
	movq	%rax, 12(%r14)
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 20(%r14)
	movq	(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 16(%r14)
	movl	4(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_devm_pinctrl_register
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	8(%r14), %edi
	jmp	LBB0_11
LBB0_15:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_chv_gpio_probe
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movl	(%r13), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_chv_pinctrl_mmio_access_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_acpi_install_address_space_handler
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_18:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_chv_communities,8,3            ## @chv_communities
	.comm	_chv_pinctrl_desc,12,2          ## @chv_pinctrl_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register pinctrl driver\n"

	.comm	_chv_pinctrl_mmio_access_handler,4,2 ## @chv_pinctrl_mmio_access_handler
L_.str.1:                               ## @.str.1
	.asciz	"failed to install ACPI addr space handler\n"

	.no_dead_strip	_chv_pinctrl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chv_pinctrl_probe
_chv_pinctrl_probe:                     ; @chv_pinctrl_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
	bl	_ACPI_COMPANION
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x22, _chv_communities@GOTPAGE
Lloh4:
	ldr	x22, [x22, _chv_communities@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #4]
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w1, [x8, #12]
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	w23, #0
	b	LBB0_9
LBB0_8:
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	str	x8, [x20]
LBB0_9:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ne	LBB0_13
LBB0_10:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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_13:
	str	x19, [x20, #32]
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [x20, #24]
LBB0_15:
	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_16:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.17:
Lloh9:
	adrp	x8, _chv_pinctrl_desc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _chv_pinctrl_desc@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	str	w9, [x20, #20]
	ldr	x8, [x8]
	mov	x23, x20
	str	x8, [x23, #12]!
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #20]
	ldr	x8, [x20]
	ldur	d0, [x8, #4]
	str	d0, [x23]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_devm_pinctrl_register
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.18:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #8]
	b	LBB0_15
LBB0_19:
	mov	x0, x20
	mov	x1, x22
	bl	_chv_gpio_probe
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.20:
	ldr	w0, [x21]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _chv_pinctrl_mmio_access_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _chv_pinctrl_mmio_access_handler@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, #0
	mov	x4, x20
	bl	_acpi_install_address_space_handler
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_22
; %bb.21:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_22:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_chv_communities,8,3            ; @chv_communities
	.comm	_chv_pinctrl_desc,12,2          ; @chv_pinctrl_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register pinctrl driver\n"

	.comm	_chv_pinctrl_mmio_access_handler,4,2 ; @chv_pinctrl_mmio_access_handler
l_.str.1:                               ; @.str.1
	.asciz	"failed to install ACPI addr space handler\n"

	.no_dead_strip	_chv_pinctrl_probe
.subsections_via_symbols
