	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_gpio_init_valid_mask
_msm_gpio_init_valid_mask:              ## @msm_gpio_init_valid_mask
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_bitmap_fill
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_14
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %r15
	jae	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, %edi
	jae	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	callq	_clear_bit
	movl	4(%rbx,%r15,4), %edi
	incq	%r15
	testl	%edi, %edi
	jns	LBB0_3
	jmp	LBB0_14
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_device_property_count_u16
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	movl	%eax, %ebx
	cmpl	%r13d, %eax
	ja	LBB0_16
## %bb.9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_device_property_read_u16_array
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_20
## %bb.11:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_bitmap_zero
	testl	%ebx, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_21
## %bb.12:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_set_bit
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_13
	jmp	LBB0_21
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_20:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_21:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid list of reserved GPIOs\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"gpios"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"could not read list of GPIOs\n"

	.no_dead_strip	_msm_gpio_init_valid_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_gpio_init_valid_mask
_msm_gpio_init_valid_mask:              ; @msm_gpio_init_valid_mask
	.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	x20, x2
	mov	x19, x1
	bl	_gpiochip_get_data
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	cbz	x24, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_bitmap_fill
	ldr	w0, [x24]
	tbnz	w0, #31, LBB0_13
; %bb.2:
	mov	x23, #0
	mov	w22, w20
	add	x24, x24, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x22
	b.hs	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w20
	b.hs	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	bl	_clear_bit
	ldr	w0, [x24, x23, lsl #2]
	add	x23, x23, #1
	tbz	w0, #31, LBB0_3
	b	LBB0_13
LBB0_6:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_property_count_u16
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	x24, x0
	cmp	w0, w20
	b.hi	LBB0_15
; %bb.8:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x24
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_18
; %bb.9:
	mov	x23, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_device_property_read_u16_array
	mov	x22, x0
	tbnz	w0, #31, LBB0_19
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_bitmap_zero
	cbz	w24, LBB0_20
; %bb.11:
	mov	w20, w24
	mov	x21, x23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #4
	mov	x1, x19
	bl	_set_bit
	subs	x20, x20, #1
	b.ne	LBB0_12
	b	LBB0_20
LBB0_13:
	mov	w22, #0
	b	LBB0_17
LBB0_14:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_15:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	mov	x0, x22
	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_18:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_19:
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_20:
	mov	x0, x23
	bl	_kfree
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid list of reserved GPIOs\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"gpios"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"could not read list of GPIOs\n"

	.no_dead_strip	_msm_gpio_init_valid_mask
.subsections_via_symbols
