	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdc321x_gpio_probe
_rdc321x_gpio_probe:                    ## @rdc321x_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
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movq	%rbx, %rdi
	addq	$96, %rdi
	callq	_spin_lock_init
	movl	4(%r15), %eax
	movl	%eax, 64(%rbx)
	movq	(%r12), %rax
	movq	%rax, 88(%rbx)
	addq	$4, %rax
	movq	%rax, 72(%rbx)
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%rax), %rax
	movq	%rax, 80(%rbx)
	addq	$4, %rax
	movq	%rax, 56(%rbx)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_rdc_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_rdc_gpio_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_rdc_gpio_get_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_rdc_gpio_set_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movl	64(%rbx), %edi
	movq	72(%rbx), %rsi
	movq	48(%rbx), %rdx
	callq	_pci_read_config_dword
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	64(%rbx), %edi
	movq	48(%rbx), %rdx
	movq	56(%rbx), %rsi
	addq	$4, %rdx
	callq	_pci_read_config_dword
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	movl	8(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	movq	%rbx, %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
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data supplied\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"failed to get gpio-reg1 resource\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"failed to get gpio-reg2 resource\n"

L_.str.5:                               ## @.str.5
	.asciz	"rdc321x-gpio"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_rdc_gpio_direction_input,4,2   ## @rdc_gpio_direction_input
	.comm	_rdc_gpio_config,4,2            ## @rdc_gpio_config
	.comm	_rdc_gpio_get_value,4,2         ## @rdc_gpio_get_value
	.comm	_rdc_gpio_set_value,4,2         ## @rdc_gpio_set_value
L_.str.6:                               ## @.str.6
	.asciz	"registering %d GPIOs\n"

	.no_dead_strip	_rdc321x_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdc321x_gpio_probe
_rdc321x_gpio_probe:                    ; @rdc321x_gpio_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	_dev_get_platdata
	cbz	x0, LBB0_7
; %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, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x23, _IORESOURCE_IO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IORESOURCE_IO@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	add	x0, x20, #96
	bl	_spin_lock_init
	ldr	w8, [x21, #4]
	str	w8, [x20, #64]
	ldr	x8, [x22]
	str	x8, [x20, #88]
	add	x8, x8, #4
	str	x8, [x20, #72]
	ldr	w1, [x23]
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x0]
	str	x8, [x20, #80]
	add	x8, x8, #4
	str	x8, [x20, #56]
Lloh9:
	adrp	x8, l_.str.5@PAGE
Lloh10:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x20]
Lloh11:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _rdc_gpio_direction_input@GOTPAGE
Lloh15:
	ldr	x9, [x9, _rdc_gpio_direction_input@GOTPAGEOFF]
	str	w8, [x20, #40]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _rdc_gpio_config@GOTPAGE
Lloh18:
	ldr	x9, [x9, _rdc_gpio_config@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh20:
	adrp	x8, _rdc_gpio_get_value@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rdc_gpio_get_value@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _rdc_gpio_set_value@GOTPAGE
Lloh24:
	ldr	x9, [x9, _rdc_gpio_set_value@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	str	xzr, [x20, #16]
	ldr	w8, [x21]
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w0, [x20, #64]
	ldr	x1, [x20, #72]
	ldr	x2, [x20, #48]
	bl	_pci_read_config_dword
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	w0, [x20, #64]
	ldp	x8, x1, [x20, #48]
	add	x2, x8, #4
	bl	_pci_read_config_dword
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	w2, [x20, #8]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	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	_devm_gpiochip_add_data
LBB0_7:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data supplied\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"failed to get gpio-reg1 resource\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"failed to get gpio-reg2 resource\n"

l_.str.5:                               ; @.str.5
	.asciz	"rdc321x-gpio"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_rdc_gpio_direction_input,4,2   ; @rdc_gpio_direction_input
	.comm	_rdc_gpio_config,4,2            ; @rdc_gpio_config
	.comm	_rdc_gpio_get_value,4,2         ; @rdc_gpio_get_value
	.comm	_rdc_gpio_set_value,4,2         ; @rdc_gpio_set_value
l_.str.6:                               ; @.str.6
	.asciz	"registering %d GPIOs\n"

	.no_dead_strip	_rdc321x_gpio_probe
.subsections_via_symbols
