	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_request_endisable
_gpio_request_endisable:                ## @gpio_request_endisable
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	1(%rbx), %r12d
	addl	$32, %ebx
	testl	%r12d, %r12d
	cmovnsl	%r12d, %ebx
	sarl	$5, %ebx
	cmpl	$3, %ebx
	ja	LBB0_2
## %bb.1:
	movq	_PAD_FUNCTION_EN_1@GOTPCREL(%rip), %rax
	shll	$3, %ebx
	addl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_PAD_FUNCTION_EN_5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rbx,8), %ebx
	addl	$-32, %ebx
LBB0_3:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pmx_readl
	movl	%eax, %esi
	btrl	%r12d, %esi
	btsl	%r12d, %eax
	testl	%r15d, %r15d
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmx_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAD_FUNCTION_EN_1,4,2          ## @PAD_FUNCTION_EN_1
	.comm	_PAD_FUNCTION_EN_5,4,2          ## @PAD_FUNCTION_EN_5
	.no_dead_strip	_gpio_request_endisable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_request_endisable
_gpio_request_endisable:                ; @gpio_request_endisable
	.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	x20, x2
	mov	x19, x0
	add	w22, w1, #1
	add	w8, w1, #32
	cmp	w22, #0
	csinc	w8, w8, w1, lt
	asr	w8, w8, #5
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _PAD_FUNCTION_EN_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAD_FUNCTION_EN_1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w21, w9, w8, lsl #3
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x9, _PAD_FUNCTION_EN_5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAD_FUNCTION_EN_5@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8, lsl #3
	sub	w21, w8, #32
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_pmx_readl
	mov	w8, #1
	lsl	w8, w8, w22
	bic	w9, w0, w8
	orr	w8, w0, w8
	cmp	w20, #0
	csel	w1, w8, w9, eq
	mov	x0, x19
	mov	x2, x21
	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	_pmx_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAD_FUNCTION_EN_1,4,2          ; @PAD_FUNCTION_EN_1
	.comm	_PAD_FUNCTION_EN_5,4,2          ; @PAD_FUNCTION_EN_5
	.no_dead_strip	_gpio_request_endisable
.subsections_via_symbols
