	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv10_gpio_drive
_nv10_gpio_drive:                       ## @nv10_gpio_drive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r8d
	movl	%edx, %eax
	movl	%esi, %r9d
	cmpl	$1, %esi
	jg	LBB0_2
## %bb.1:
	shll	$4, %r9d
	movl	$17, %edx
	movl	$6293528, %esi                  ## imm = 0x600818
	movl	$4, %ecx
	jmp	LBB0_7
LBB0_2:
	cmpl	$9, %r9d
	ja	LBB0_4
## %bb.3:
	leal	-8(,%r9,4), %r9d
	movl	$3, %edx
	movl	$6293532, %esi                  ## imm = 0x60081C
	jmp	LBB0_6
LBB0_4:
	cmpl	$13, %r9d
	ja	LBB0_9
## %bb.5:
	leal	-40(,%r9,4), %r9d
	movl	$3, %edx
	movl	$6293584, %esi                  ## imm = 0x600850
LBB0_6:
	movl	$1, %ecx
LBB0_7:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%r9d, %ecx
	shll	%cl, %edx
	orl	%r8d, %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_nv_mask
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nv10_gpio_drive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv10_gpio_drive
_nv10_gpio_drive:                       ; @nv10_gpio_drive
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	cmp	w1, #1
	b.gt	LBB0_2
; %bb.1:
	mov	w1, #2072
	movk	w1, #96, lsl #16
	lsl	w8, w8, #4
	mov	w9, #17
	mov	w10, #4
	b	LBB0_7
LBB0_2:
	cmp	w8, #9
	b.hi	LBB0_4
; %bb.3:
	lsl	w8, w8, #2
	sub	w8, w8, #8
	mov	w9, #2072
	movk	w9, #96, lsl #16
	orr	w1, w9, #0x4
	b	LBB0_6
LBB0_4:
	cmp	w8, #13
	b.hi	LBB0_8
; %bb.5:
	lsl	w8, w8, #2
	sub	w8, w8, #40
	mov	w9, #2072
	movk	w9, #96, lsl #16
	add	w1, w9, #56
LBB0_6:
	mov	w9, #3
	mov	w10, #1
LBB0_7:
	lsl	w10, w2, w10
	orr	w10, w10, w3
	lsl	w2, w9, w8
	lsl	w3, w10, w8
	bl	_nv_mask
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nv10_gpio_drive
.subsections_via_symbols
