	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_setfunc
_npcm7xx_setfunc:                       ## @npcm7xx_setfunc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_19
## %bb.1:
	movl	%edx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_regmap_update_bits
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_pincfg@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	imulq	$56, %rax, %r12
	leaq	(%r15,%r12), %r13
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_fn_gpio@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r13)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r15,%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r15,%r12)
	jne	LBB0_18
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r15,%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r15,%r12), %edi
	callq	_BIT
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r13)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$40, %rax
	movl	(%rax), %edi
	movl	%edx, %r13d
	callq	_BIT
	movl	%r13d, %edx
	movl	%eax, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_regmap_update_bits
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15,%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r15,%r12), %edi
	callq	_BIT
	movl	%eax, %r13d
	xorl	%ecx, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r15,%r12)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$24, %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_regmap_update_bits
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15,%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r15,%r12), %edi
	callq	_BIT
	movl	%eax, %r13d
	xorl	%ecx, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r15,%r12)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$12, %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ecx
	jmp	LBB0_17
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pincfg,8,3                     ## @pincfg
	.comm	_fn_gpio,4,2                    ## @fn_gpio
	.no_dead_strip	_npcm7xx_setfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_setfunc
_npcm7xx_setfunc:                       ; @npcm7xx_setfunc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	w25, #56
	mov	w27, w2
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	bl	_BIT
	mov	x3, x0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_regmap_update_bits
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #4
	subs	x27, x27, #1
	b.eq	LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x8, _pincfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pincfg@GOTPAGEOFF]
Lloh2:
	ldr	x28, [x8]
	ldr	w24, [x20]
	madd	x26, x24, x25, x28
Lloh3:
	adrp	x8, _fn_gpio@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fn_gpio@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	cmp	w8, w19
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x24, x25, x28
	ldr	w8, [x8, #4]
	cmp	w8, w19
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x24, x25, x28
	ldr	w8, [x8, #8]
	cmp	w8, w19
	b.ne	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x24, x25, x28
	ldr	x22, [x8, #48]
	cbz	x22, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #56
	mov	x25, x21
	madd	x21, x24, x8, x28
	ldr	w0, [x21, #40]!
	bl	_BIT
	mov	x23, x0
	ldr	w8, [x26]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_BIT
	mov	x3, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x25
	mov	w25, #56
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_regmap_update_bits
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x24, x25, x28
	ldr	x22, [x8, #32]
	cbz	x22, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x26, x24, x25, x28
	ldr	w0, [x26, #24]!
	bl	_BIT
	mov	x23, x0
	ldur	w8, [x26, #-20]
	cmp	w8, w19
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_BIT
	mov	x3, x0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_regmap_update_bits
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x24, x25, x28
	ldr	x22, [x8, #16]
	cbz	x22, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x24, x24, x25, x28
	ldr	w0, [x24, #12]!
	bl	_BIT
	mov	x23, x0
	ldur	w8, [x24, #-4]
	cmp	w8, w19
	b.eq	LBB0_2
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w3, #0
	b	LBB0_3
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pincfg,8,3                     ; @pincfg
	.comm	_fn_gpio,4,2                    ; @fn_gpio
	.no_dead_strip	_npcm7xx_setfunc
.subsections_via_symbols
