	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_setup_data_regs
_gpio_setup_data_regs:                  ## @gpio_setup_data_regs
	.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
	movq	8(%rdi), %r15
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	$-1, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%esi
	cmpq	$0, (%rax,%rsi,8)
	jne	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$16, %edx
	callq	_devm_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rcx
	movq	16(%rcx), %r12
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.5:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %ebx
	shlq	$4, %rbx
	movq	%r12, 8(%rax,%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_gpio_read_data_reg
	movl	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax,%rbx)
	incl	%r13d
	cmpq	$0, 8(%r12)
	leaq	8(%r12), %r12
	jne	LBB0_6
## %bb.7:
	movq	(%r15), %rcx
LBB0_8:
	cmpl	$0, (%rcx)
	je	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movl	(%rcx), %eax
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gpio_setup_data_reg
	movq	(%r15), %rcx
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_gpio_setup_data_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_setup_data_regs
_gpio_setup_data_regs:                  ; @gpio_setup_data_regs
	.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
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	mov	w1, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w1, #1
	ldr	x9, [x8, w1, uxtw #3]
	cbnz	x9, LBB0_1
; %bb.2:
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #16
	bl	_devm_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.3:
	ldr	x8, [x21]
	ldr	x20, [x8, #16]
	ldr	x9, [x20]
	cbz	x9, LBB0_7
; %bb.4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, w22
	lsl	x23, x8, #4
	add	x8, x0, x23
	str	x20, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_gpio_read_data_reg
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0, x23]
	add	w22, w22, #1
	ldr	x8, [x20, #8]!
	cbnz	x8, LBB0_5
; %bb.6:
	ldr	x8, [x21]
LBB0_7:
	ldr	w9, [x8]
	cbz	w9, LBB0_12
; %bb.8:
	mov	x20, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldr	w9, [x8]
	cmp	x20, x9
	b.hs	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x20, lsl #3]
	cbz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_gpio_setup_data_reg
	ldr	x8, [x21]
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_gpio_setup_data_regs
.subsections_via_symbols
