	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_gpio_reset
_nv50_gpio_reset:                       ## @nv50_gpio_reset
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_nouveau_bios
	movq	%rax, %r12
	leaq	-44(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_dcb_gpio_entry
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	$1, %ebx
	movq	_DCB_GPIO_UNUSED@GOTPCREL(%rip), %r15
	leaq	-44(%rbp), %r13
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r8d
	shrl	$24, %r8d
	andl	$1, %r8d
	movl	%eax, %ecx
	shrl	$25, %ecx
	andl	$1, %ecx
	movl	%eax, %r13d
	shrl	$10, %r13d
	andl	$65536, %r13d                   ## imm = 0x10000
	orl	%ecx, %r13d
	movl	%eax, %esi
	shrl	$4, %esi
	andl	$1, %esi
	movl	%eax, %r14d
	leaq	_nv50_gpio_reset.regs(%rip), %rcx
	movl	(%rcx,%rsi,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	andl	$15, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	*(%r15)
	movl	$65537, %edx                    ## imm = 0x10001
	movl	%r14d, %ecx
	shll	%cl, %edx
	shll	%cl, %r13d
	movq	%r15, %rdi
	movq	_DCB_GPIO_UNUSED@GOTPCREL(%rip), %r15
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r13d, %ecx
	leaq	-44(%rbp), %r13
	callq	_nv_mask
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	leaq	-56(%rbp), %r8
	callq	_dcb_gpio_entry
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nv_ro32
	movzbl	%ah, %edx
	movl	(%r15), %ecx
	cmpl	%ecx, %edx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %edx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @nv50_gpio_reset.regs
_nv50_gpio_reset.regs:
	.long	57600                           ## 0xe100
	.long	57996                           ## 0xe28c

	.comm	_DCB_GPIO_UNUSED,4,2            ## @DCB_GPIO_UNUSED
	.no_dead_strip	_nv50_gpio_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_gpio_reset
_nv50_gpio_reset:                       ; @nv50_gpio_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_nouveau_bios
	mov	x21, x0
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w1, #0
	mov	w2, #0
	bl	_dcb_gpio_entry
	cbz	w0, LBB0_6
; %bb.1:
	mov	x1, x0
	mov	w22, #1
Lloh0:
	adrp	x25, _DCB_GPIO_UNUSED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DCB_GPIO_UNUSED@GOTPAGEOFF]
	mov	w26, #65537
Lloh2:
	adrp	x27, _nv50_gpio_reset.regs@PAGE
Lloh3:
	add	x27, x27, _nv50_gpio_reset.regs@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_dcb_gpio_entry
	mov	x1, x0
	add	w22, w22, #1
	cbz	w0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_nv_ro32
	ubfx	w2, w0, #8, #8
	ldr	w8, [x25]
	cmp	w2, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w19
	ccmp	w2, w19, #4, ne
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w4, w0, #24, #1
	lsr	w8, w0, #10
	and	w28, w8, #0x10000
	bfxil	w28, w0, #25, #1
	ubfx	w8, w0, #4, #1
	ldr	w23, [x27, w8, uxtw #2]
	and	w24, w0, #0xf
	ldr	x8, [x20]
	mov	x0, x20
	mov	w1, #0
	mov	x3, x24
	blr	x8
	lsl	w2, w26, w24
	lsl	w3, w28, w24
	mov	x0, x20
	mov	x1, x23
	bl	_nv_mask
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @nv50_gpio_reset.regs
_nv50_gpio_reset.regs:
	.long	57600                           ; 0xe100
	.long	57996                           ; 0xe28c

	.comm	_DCB_GPIO_UNUSED,4,2            ; @DCB_GPIO_UNUSED
	.no_dead_strip	_nv50_gpio_reset
.subsections_via_symbols
