	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_gpio_request
_stm32_gpio_request:                    ## @stm32_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_gpiochip_get_data
	movq	%rax, %r13
	movl	4(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_STM32_GPIO_PINS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	(%r13), %ebx
	addl	%r15d, %ebx
	movl	4(%r12), %edi
	movl	%ebx, %esi
	callq	_pinctrl_find_gpio_range_from_pin_nolock
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	addq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pinctrl_gpio_request           ## TAILCALL
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_GPIO_PINS_PER_BANK,4,2   ## @STM32_GPIO_PINS_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin %d not in range.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stm32_gpio_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_gpio_request
_stm32_gpio_request:                    ; @stm32_gpio_request
	.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	x19, x1
	mov	x20, x0
	bl	_gpiochip_get_data
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _STM32_GPIO_PINS_PER_BANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STM32_GPIO_PINS_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	madd	w21, w9, w8, w19
	ldr	w0, [x0, #4]
	mov	x1, x21
	bl	_pinctrl_find_gpio_range_from_pin_nolock
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	add	x0, x8, w19, uxtw
	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	_pinctrl_gpio_request
LBB0_2:
	ldr	w0, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_GPIO_PINS_PER_BANK,4,2   ; @STM32_GPIO_PINS_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin %d not in range.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stm32_gpio_request
.subsections_via_symbols
