	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devprop_gpiochip_set_names     ## -- Begin function devprop_gpiochip_set_names
	.p2align	4, 0x90
_devprop_gpiochip_set_names:            ## @devprop_gpiochip_set_names
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_fwnode_property_read_string_array
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movl	(%r14), %r15d
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_fwnode_property_read_string_array
	testl	%eax, %eax
	js	LBB0_20
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.4:
	movq	8(%r14), %rax
	movl	%r15d, %r8d
	xorl	%edx, %edx
	cmpl	$4, %r15d
	jb	LBB0_14
## %bb.5:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_14
## %bb.6:
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rcx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$12, %rcx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	addq	$16, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_18
LBB0_8:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rcx,8), %xmm0
	movups	16(%rbx,%rcx,8), %xmm1
	movups	%xmm0, (%rax,%rcx,8)
	movups	%xmm1, 16(%rax,%rcx,8)
	movups	32(%rbx,%rcx,8), %xmm0
	movups	48(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 32(%rax,%rcx,8)
	movups	%xmm1, 48(%rax,%rcx,8)
	movups	64(%rbx,%rcx,8), %xmm0
	movups	80(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 64(%rax,%rcx,8)
	movups	%xmm1, 80(%rax,%rcx,8)
	movups	96(%rbx,%rcx,8), %xmm0
	movups	112(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 96(%rax,%rcx,8)
	movups	%xmm1, 112(%rax,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rdi
	jne	LBB0_9
LBB0_10:
	testq	%r9, %r9
	je	LBB0_13
## %bb.11:
	leaq	(%rax,%rcx,8), %rdi
	addq	$16, %rdi
	leaq	(%rbx,%rcx,8), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rsi), %xmm0
	movups	(%rcx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_12
LBB0_13:
	cmpq	%r8, %rdx
	je	LBB0_18
LBB0_14:
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r8, %rcx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rdi
	movq	%rdi, (%rax,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %rcx
	jb	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	8(%rbx,%rdx,8), %rcx
	movq	%rcx, 8(%rax,%rdx,8)
	movq	16(%rbx,%rdx,8), %rcx
	movq	%rcx, 16(%rax,%rdx,8)
	movq	24(%rbx,%rdx,8), %rcx
	movq	%rcx, 24(%rax,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio-line-names"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"failed to read GPIO line names\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devprop_gpiochip_set_names     ; -- Begin function devprop_gpiochip_set_names
	.p2align	2
_devprop_gpiochip_set_names:            ; @devprop_gpiochip_set_names
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_fwnode_property_read_string_array
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w20, w0, w8, lt
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_fwnode_property_read_string_array
	tbnz	w0, #31, LBB0_12
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x8, #0
	ldr	x9, [x22, #8]
	cmp	w20, #8
	b.lo	LBB0_9
; %bb.5:
	sub	x10, x9, x19
	cmp	x10, #64
	b.lo	LBB0_9
; %bb.6:
	and	x8, x20, #0xfffffff8
	add	x10, x9, #32
	add	x11, x19, #32
	mov	x12, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x8, x20
	b.eq	LBB0_13
LBB0_9:
	lsl	x11, x8, #3
	add	x10, x19, x11
	add	x9, x9, x11
	sub	x8, x20, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	str	x11, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_10
	b	LBB0_13
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	add	x0, x22, #16
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio-line-names"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"failed to read GPIO line names\n"

.subsections_via_symbols
