	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ichx_gpio_request_regions
_ichx_gpio_request_regions:             ## @ichx_gpio_request_regions
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r13
	cmpq	$0, (%rsi)
	je	LBB0_8
## %bb.2:
	cmpl	$0, 8(%r13)
	je	LBB0_8
## %bb.3:
	movl	%ecx, %r15d
	movq	%rdi, %r12
	movq	_ichx_priv@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	(%r13), %rsi
	movl	(%rcx,%rbx,4), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_devm_request_region
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ichx_priv,8,3                  ## @ichx_priv
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ichx_gpio_request_regions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ichx_gpio_request_regions
_ichx_gpio_request_regions:             ; @ichx_gpio_request_regions
	.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
	cbz	x1, LBB0_9
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
Lloh0:
	adrp	x24, _ichx_priv@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ichx_priv@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BIT
	tst	w0, w19
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x24]
	ldp	x9, x10, [x9]
	ldr	x10, [x10]
	ldr	x10, [x10, x23, lsl #3]
	add	x1, x10, x8
	ldr	w2, [x9, x23, lsl #2]
	mov	x0, x22
	mov	x3, x20
	bl	_devm_request_region
	cbnz	w0, LBB0_5
; %bb.8:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ichx_priv,8,3                  ; @ichx_priv
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ichx_gpio_request_regions
.subsections_via_symbols
