	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinctrl_gpio_request           ## -- Begin function pinctrl_gpio_request
	.p2align	4, 0x90
_pinctrl_gpio_request:                  ## @pinctrl_gpio_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_pinctrl_get_device_gpio_range
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_pinctrl_ready_for_gpio_range
	xorl	%ebx, %ebx
	testq	%rax, %rax
	cmovel	%r14d, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	-24(%rbp), %rdi
	callq	_mutex_lock
	movq	-32(%rbp), %rdi
	movl	%ebx, %esi
	callq	_gpio_to_pin
	movq	-24(%rbp), %rdi
	movq	-32(%rbp), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_pinmux_request_gpio
	movl	%eax, %ebx
	movq	-24(%rbp), %rdi
	callq	_mutex_unlock
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinctrl_gpio_request           ; -- Begin function pinctrl_gpio_request
	.p2align	2
_pinctrl_gpio_request:                  ; @pinctrl_gpio_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, sp
	bl	_pinctrl_get_device_gpio_range
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_pinctrl_ready_for_gpio_range
	cmp	x0, #0
	csel	w19, w20, wzr, eq
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_mutex_lock
	ldr	x0, [sp]
	mov	x1, x19
	bl	_gpio_to_pin
	mov	x2, x0
	ldp	x1, x0, [sp]
	mov	x3, x19
	bl	_pinmux_request_gpio
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
