	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_latch_probe
_gpio_latch_probe:                      ## @gpio_latch_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.4:
	movq	%rax, %r12
	movq	(%rax), %rax
	cmpq	8(%r12), %rax
	jae	LBB0_1
## %bb.5:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movl	(%rax), %esi
	movq	_GPIO_LATCH_DRIVER_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, 8(%r12)
	jbe	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_devm_gpio_request
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r15
	leaq	56(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$52, %rdi
	callq	_mutex_init
	movq	%rbx, %rax
	movl	8(%r12), %ebx
	shll	$2, %ebx
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_devm_kzalloc
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	16(%r12), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movq	40(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 48(%r15)
	movl	28(%r12), %eax
	movl	%eax, 32(%r15)
	movl	(%r13), %eax
	movl	%eax, 28(%r15)
	movl	24(%r12), %eax
	movl	%eax, 24(%r15)
	movl	$1, (%r15)
	movl	8(%r12), %eax
	movl	%eax, 4(%r15)
	movq	_gpio_latch_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_gpio_latch_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_gpio_latch_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_gpio_latch_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpiochip_add                   ## TAILCALL
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GPIO_LATCH_DRIVER_NAME,4,2     ## @GPIO_LATCH_DRIVER_NAME
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gpio_latch_get,4,2             ## @gpio_latch_get
	.comm	_gpio_latch_set,4,2             ## @gpio_latch_set
	.comm	_gpio_latch_direction_input,4,2 ## @gpio_latch_direction_input
	.comm	_gpio_latch_direction_output,4,2 ## @gpio_latch_direction_output
	.no_dead_strip	_gpio_latch_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_latch_probe
_gpio_latch_probe:                      ; @gpio_latch_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	x20, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w1, [x8]
Lloh0:
	adrp	x23, _GPIO_LATCH_DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GPIO_LATCH_DRIVER_NAME@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_devm_gpio_request
	cbnz	w0, LBB0_9
; %bb.4:
	mov	w21, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.ls	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_devm_gpio_request
	add	x21, x21, #1
	cbz	w0, LBB0_5
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
Lloh4:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x21, x0
	add	x0, x0, #56
	bl	_mutex_init
	add	x0, x21, #52
	bl	_mutex_init
	ldr	w8, [x20, #8]
	lsl	w22, w8, #2
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_kzalloc
	str	x0, [x21, #40]
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x1, [x20, #16]
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x21, #40]
	ldp	x9, x10, [x20]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x21, #48]
	ldp	w9, w11, [x20, #24]
	ldr	w8, [x23]
	stp	w8, w11, [x21, #28]
	str	w9, [x21, #24]
	mov	w8, #1
	stp	w8, w10, [x21]
Lloh6:
	adrp	x8, _gpio_latch_get@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gpio_latch_get@GOTPAGEOFF]
Lloh8:
	adrp	x9, _gpio_latch_set@GOTPAGE
Lloh9:
	ldr	x9, [x9, _gpio_latch_set@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh12:
	adrp	x8, _gpio_latch_direction_input@GOTPAGE
Lloh13:
	ldr	x8, [x8, _gpio_latch_direction_input@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _gpio_latch_direction_output@GOTPAGE
Lloh16:
	ldr	x9, [x9, _gpio_latch_direction_output@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x21
	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	_gpiochip_add
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GPIO_LATCH_DRIVER_NAME,4,2     ; @GPIO_LATCH_DRIVER_NAME
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gpio_latch_get,4,2             ; @gpio_latch_get
	.comm	_gpio_latch_set,4,2             ; @gpio_latch_set
	.comm	_gpio_latch_direction_input,4,2 ; @gpio_latch_direction_input
	.comm	_gpio_latch_direction_output,4,2 ; @gpio_latch_direction_output
	.no_dead_strip	_gpio_latch_probe
.subsections_via_symbols
