	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kempld_gpio_probe
_kempld_gpio_probe:                     ## @kempld_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, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_dev_get_platdata
	cmpl	$1, (%r15)
	jg	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r13
	movq	%r15, 64(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	%r14, 48(%r13)
	movl	$1, 8(%r13)
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	movl	%eax, 12(%r13)
	movq	_kempld_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	_kempld_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	_kempld_gpio_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	_kempld_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_kempld_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	%r15, %rdi
	callq	_kempld_gpio_pincount
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movq	16(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver only supports GPIO devices compatible to PLD spec. rev. 2.0 or higher\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"gpio-kempld"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_kempld_gpio_direction_input,4,2 ## @kempld_gpio_direction_input
	.comm	_kempld_gpio_direction_output,4,2 ## @kempld_gpio_direction_output
	.comm	_kempld_gpio_get_direction,4,2  ## @kempld_gpio_get_direction
	.comm	_kempld_gpio_get,4,2            ## @kempld_gpio_get
	.comm	_kempld_gpio_set,4,2            ## @kempld_gpio_set
L_.str.2:                               ## @.str.2
	.asciz	"No GPIO pins detected\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not register GPIO chip\n"

L_.str.4:                               ## @.str.4
	.asciz	"GPIO functionality initialized with %d pins\n"

	.no_dead_strip	_kempld_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kempld_gpio_probe
_kempld_gpio_probe:                     ; @kempld_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	x20, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_platdata
	ldr	w8, [x20]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	x22, x0
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x21, x0
	str	x20, [x0, #64]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
	str	x8, [x21]
Lloh11:
	ldr	w8, [x9]
	str	w8, [x21, #56]
	str	x19, [x21, #48]
	mov	w8, #1
	str	w8, [x21, #8]
	cbz	x22, LBB0_6
; %bb.5:
	ldr	w8, [x22]
	cbnz	w8, LBB0_7
LBB0_6:
	mov	w8, #-1
LBB0_7:
	str	w8, [x21, #12]
Lloh12:
	adrp	x8, _kempld_gpio_direction_input@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kempld_gpio_direction_input@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #40]
Lloh15:
	adrp	x8, _kempld_gpio_direction_output@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kempld_gpio_direction_output@GOTPAGEOFF]
Lloh17:
	adrp	x9, _kempld_gpio_get_direction@GOTPAGE
Lloh18:
	ldr	x9, [x9, _kempld_gpio_get_direction@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #32]
Lloh21:
	adrp	x8, _kempld_gpio_get@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kempld_gpio_get@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _kempld_gpio_set@GOTPAGE
Lloh25:
	ldr	x9, [x9, _kempld_gpio_set@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
	mov	x0, x20
	bl	_kempld_gpio_pincount
	str	x0, [x21, #16]
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.9:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_10:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, 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
	ret
LBB0_13:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_14:
	ldr	x2, [x21, #16]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.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 AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver only supports GPIO devices compatible to PLD spec. rev. 2.0 or higher\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"gpio-kempld"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_kempld_gpio_direction_input,4,2 ; @kempld_gpio_direction_input
	.comm	_kempld_gpio_direction_output,4,2 ; @kempld_gpio_direction_output
	.comm	_kempld_gpio_get_direction,4,2  ; @kempld_gpio_get_direction
	.comm	_kempld_gpio_get,4,2            ; @kempld_gpio_get
	.comm	_kempld_gpio_set,4,2            ; @kempld_gpio_set
l_.str.2:                               ; @.str.2
	.asciz	"No GPIO pins detected\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not register GPIO chip\n"

l_.str.4:                               ; @.str.4
	.asciz	"GPIO functionality initialized with %d pins\n"

	.no_dead_strip	_kempld_gpio_probe
.subsections_via_symbols
