	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs5535_gpio_probe
_cs5535_gpio_probe:                     ## @cs5535_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, %r12
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %r13d
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r12), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	movq	_cs5535_gpio_chip@GOTPCREL(%rip), %rdi
	movl	%eax, 16(%rdi)
	movq	%r12, 8(%rdi)
	addq	$4, %rdi
	callq	_spin_lock_init
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_info
	movl	$260046847, %ecx                ## imm = 0xF7FFFFF
	movq	_mask@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movl	%ecx, (%rax)
	cmpl	%ecx, %r14d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_7:
	movq	_cs5535_gpio_chip@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rdx, %rsi
	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:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_dev_err
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_mask,4,2                       ## @mask
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't fetch device resource info\n"

L_.str.1:                               ## @.str.1
	.asciz	"can't request region\n"

	.comm	_cs5535_gpio_chip,24,3          ## @cs5535_gpio_chip
L_.str.2:                               ## @.str.2
	.asciz	"reserved resource region %pR\n"

L_.str.3:                               ## @.str.3
	.asciz	"mask changed from 0x%08lX to 0x%08lX\n"

	.no_dead_strip	_cs5535_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs5535_gpio_probe
_cs5535_gpio_probe:                     ; @cs5535_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x23, _mask@GOTPAGE
Lloh4:
	ldr	x23, [x23, _mask@GOTPAGEOFF]
	ldr	w22, [x23]
Lloh5:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w21, [x0]
	bl	_resource_size
	mov	x2, x0
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_request_region
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _cs5535_gpio_chip@GOTPAGE
Lloh9:
	ldr	x9, [x9, _cs5535_gpio_chip@GOTPAGEOFF]
	str	w8, [x9, #16]
	str	x19, [x9, #8]
	add	x0, x9, #4
	bl	_spin_lock_init
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x23]
	mov	w9, #260046847
	and	w8, w8, w9
	str	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_4
; %bb.3:
	stp	x22, x8, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_4:
Lloh14:
	adrp	x1, _cs5535_gpio_chip@GOTPAGE
Lloh15:
	ldr	x1, [x1, _cs5535_gpio_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_devm_gpiochip_add_data
LBB0_5:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
	neg	w0, w24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_mask,4,2                       ; @mask
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't fetch device resource info\n"

l_.str.1:                               ; @.str.1
	.asciz	"can't request region\n"

	.comm	_cs5535_gpio_chip,24,3          ; @cs5535_gpio_chip
l_.str.2:                               ; @.str.2
	.asciz	"reserved resource region %pR\n"

l_.str.3:                               ; @.str.3
	.asciz	"mask changed from 0x%08lX to 0x%08lX\n"

	.no_dead_strip	_cs5535_gpio_probe
.subsections_via_symbols
