	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madera_gpio_probe
_madera_gpio_probe:                     ## @madera_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	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.3:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	_madera_gpio_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	(%r15), %edx
	leal	-128(%rdx), %eax
	cmpl	$9, %eax
	jae	LBB0_4
## %bb.5:
	cltq
	leaq	l_switch.table.madera_gpio_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	4(%r15), %eax
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	4(%rbx), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_add_pin_range
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	%ebx, %r15d
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	%r12d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_madera_gpio_chip,12,2          ## @madera_gpio_chip
	.comm	_CS47L15_NUM_GPIOS,4,2          ## @CS47L15_NUM_GPIOS
	.comm	_CS47L35_NUM_GPIOS,4,2          ## @CS47L35_NUM_GPIOS
	.comm	_CS47L85_NUM_GPIOS,4,2          ## @CS47L85_NUM_GPIOS
	.comm	_CS47L90_NUM_GPIOS,4,2          ## @CS47L90_NUM_GPIOS
	.comm	_CS47L92_NUM_GPIOS,4,2          ## @CS47L92_NUM_GPIOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown chip variant %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Could not register gpiochip, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"madera-pinctrl"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to add pin range (%d)\n"

	.no_dead_strip	_madera_gpio_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.madera_gpio_probe
l_switch.table.madera_gpio_probe:
	.quad	_CS47L85_NUM_GPIOS
	.quad	_CS47L92_NUM_GPIOS
	.quad	_CS47L92_NUM_GPIOS
	.quad	_CS47L90_NUM_GPIOS
	.quad	_CS47L90_NUM_GPIOS
	.quad	_CS47L85_NUM_GPIOS
	.quad	_CS47L35_NUM_GPIOS
	.quad	_CS47L15_NUM_GPIOS
	.quad	_CS47L92_NUM_GPIOS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madera_gpio_probe
_madera_gpio_probe:                     ; @madera_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	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, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #16]
Lloh3:
	adrp	x8, _madera_gpio_chip@GOTPAGE
Lloh4:
	ldr	x8, [x8, _madera_gpio_chip@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	ldr	x8, [x8]
	str	x8, [x0]
	str	w9, [x0, #8]
	ldr	w8, [x19]
	str	w8, [x0, #8]
	ldr	w2, [x21]
	sub	w8, w2, #128
	cmp	w8, #9
	b.hs	LBB0_6
; %bb.2:
Lloh5:
	adrp	x9, l_switch.table.madera_gpio_probe@PAGE
Lloh6:
	add	x9, x9, l_switch.table.madera_gpio_probe@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	cmp	w9, #0
	csinv	w9, w9, wzr, ne
	stp	w9, w8, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w4, [x20, #4]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_gpiochip_add_pin_range
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_8:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_madera_gpio_chip,12,2          ; @madera_gpio_chip
	.comm	_CS47L15_NUM_GPIOS,4,2          ; @CS47L15_NUM_GPIOS
	.comm	_CS47L35_NUM_GPIOS,4,2          ; @CS47L35_NUM_GPIOS
	.comm	_CS47L85_NUM_GPIOS,4,2          ; @CS47L85_NUM_GPIOS
	.comm	_CS47L90_NUM_GPIOS,4,2          ; @CS47L90_NUM_GPIOS
	.comm	_CS47L92_NUM_GPIOS,4,2          ; @CS47L92_NUM_GPIOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown chip variant %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Could not register gpiochip, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"madera-pinctrl"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to add pin range (%d)\n"

	.no_dead_strip	_madera_gpio_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.madera_gpio_probe
l_switch.table.madera_gpio_probe:
	.quad	_CS47L85_NUM_GPIOS
	.quad	_CS47L92_NUM_GPIOS
	.quad	_CS47L92_NUM_GPIOS
	.quad	_CS47L90_NUM_GPIOS
	.quad	_CS47L90_NUM_GPIOS
	.quad	_CS47L85_NUM_GPIOS
	.quad	_CS47L35_NUM_GPIOS
	.quad	_CS47L15_NUM_GPIOS
	.quad	_CS47L92_NUM_GPIOS

.subsections_via_symbols
