	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syscon_gpio_probe
_syscon_gpio_probe:                     ## @syscon_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
	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
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 48(%r14)
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_syscon_regmap_lookup_by_compatible
	movl	%eax, 56(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_13
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 56(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_syscon_node_to_regmap
	movl	%eax, 56(%rbx)
LBB0_7:
	movl	56(%rbx), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movl	56(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_10:
	shll	$3, (%rbx)
	leaq	4(%r14), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	movq	%r13, %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
LBB0_12:
	shll	$3, (%r13)
LBB0_13:
	movq	%r15, 40(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 32(%rbx)
	movl	$-1, 8(%rbx)
	movq	48(%rbx), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movq	_syscon_gpio_get@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	(%rax), %ecx
	movq	_GPIO_SYSCON_FEAT_IN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_15
## %bb.14:
	movq	_syscon_gpio_dir_in@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rbx)
LBB0_15:
	addq	$8, %r14
	movq	_GPIO_SYSCON_FEAT_OUT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_19
## %bb.16:
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	_syscon_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movl	%eax, 16(%rbx)
	movq	_syscon_gpio_dir_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_19:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_gpiochip_add_data         ## TAILCALL
	.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	"gpio,syscon-dev"

L_.str.1:                               ## @.str.1
	.asciz	"can't read the data register offset!\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't read the dir register offset!\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_syscon_gpio_get,4,2            ## @syscon_gpio_get
	.comm	_GPIO_SYSCON_FEAT_IN,4,2        ## @GPIO_SYSCON_FEAT_IN
	.comm	_syscon_gpio_dir_in,4,2         ## @syscon_gpio_dir_in
	.comm	_GPIO_SYSCON_FEAT_OUT,4,2       ## @GPIO_SYSCON_FEAT_OUT
	.comm	_syscon_gpio_set,4,2            ## @syscon_gpio_set
	.comm	_syscon_gpio_dir_out,4,2        ## @syscon_gpio_dir_out
	.no_dead_strip	_syscon_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syscon_gpio_probe
_syscon_gpio_probe:                     ; @syscon_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	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #48]
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_syscon_regmap_lookup_by_compatible
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbnz	x0, LBB0_8
	b	LBB0_14
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x21]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_syscon_node_to_regmap
	str	w0, [x20, #56]
LBB0_7:
	ldr	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_9
LBB0_8:
	ldr	w0, [x20, #56]
	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
	b	_PTR_ERR
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	mov	x3, x20
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_11
; %bb.10:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	ldr	w8, [x20]
	lsl	w8, w8, #3
	mov	x22, x20
	str	w8, [x22], #4
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #2
	mov	x3, x22
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_13
; %bb.12:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_13:
	ldr	w8, [x22]
	lsl	w8, w8, #3
	str	w8, [x22]
LBB0_14:
	str	x19, [x20, #40]
Lloh16:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	mov	x0, x19
	bl	_dev_name
	mov	w8, #-1
	mov	x21, x20
	str	w8, [x21, #8]!
	str	w0, [x21, #24]
	ldr	x8, [x21, #40]
	ldr	w9, [x8, #16]
Lloh19:
	adrp	x10, _syscon_gpio_get@GOTPAGE
Lloh20:
	ldr	x10, [x10, _syscon_gpio_get@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	stp	w10, w9, [x21, #16]
	ldr	w9, [x8]
Lloh22:
	adrp	x10, _GPIO_SYSCON_FEAT_IN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _GPIO_SYSCON_FEAT_IN@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.15:
Lloh25:
	adrp	x10, _syscon_gpio_dir_in@GOTPAGE
Lloh26:
	ldr	x10, [x10, _syscon_gpio_dir_in@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	str	w10, [x20, #20]
LBB0_16:
Lloh28:
	adrp	x10, _GPIO_SYSCON_FEAT_OUT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _GPIO_SYSCON_FEAT_OUT@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.17:
	ldr	x8, [x8, #8]
Lloh31:
	adrp	x9, _syscon_gpio_set@GOTPAGE
Lloh32:
	ldr	x9, [x9, _syscon_gpio_set@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
Lloh34:
	adrp	x9, _syscon_gpio_dir_out@GOTPAGE
Lloh35:
	ldr	x9, [x9, _syscon_gpio_dir_out@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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
	b	_devm_gpiochip_add_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	"gpio,syscon-dev"

l_.str.1:                               ; @.str.1
	.asciz	"can't read the data register offset!\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't read the dir register offset!\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_syscon_gpio_get,4,2            ; @syscon_gpio_get
	.comm	_GPIO_SYSCON_FEAT_IN,4,2        ; @GPIO_SYSCON_FEAT_IN
	.comm	_syscon_gpio_dir_in,4,2         ; @syscon_gpio_dir_in
	.comm	_GPIO_SYSCON_FEAT_OUT,4,2       ; @GPIO_SYSCON_FEAT_OUT
	.comm	_syscon_gpio_set,4,2            ; @syscon_gpio_set
	.comm	_syscon_gpio_dir_out,4,2        ; @syscon_gpio_dir_out
	.no_dead_strip	_syscon_gpio_probe
.subsections_via_symbols
