	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc18xx_gpio_to_pintsel_val
_lpc18xx_gpio_to_pintsel_val:           ## @lpc18xx_gpio_to_pintsel_val
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_LPC18XX_GPIO_PINS_PER_PORT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_LPC18XX_SCU_PINTSEL_PORT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC18XX_GPIO_PINS_PER_PORT,4,2 ## @LPC18XX_GPIO_PINS_PER_PORT
	.comm	_LPC18XX_SCU_PINTSEL_PORT_SHIFT,4,2 ## @LPC18XX_SCU_PINTSEL_PORT_SHIFT
	.no_dead_strip	_lpc18xx_gpio_to_pintsel_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc18xx_gpio_to_pintsel_val
_lpc18xx_gpio_to_pintsel_val:           ; @lpc18xx_gpio_to_pintsel_val
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _LPC18XX_GPIO_PINS_PER_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPC18XX_GPIO_PINS_PER_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
Lloh3:
	adrp	x10, _LPC18XX_SCU_PINTSEL_PORT_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LPC18XX_SCU_PINTSEL_PORT_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC18XX_GPIO_PINS_PER_PORT,4,2 ; @LPC18XX_GPIO_PINS_PER_PORT
	.comm	_LPC18XX_SCU_PINTSEL_PORT_SHIFT,4,2 ; @LPC18XX_SCU_PINTSEL_PORT_SHIFT
	.no_dead_strip	_lpc18xx_gpio_to_pintsel_val
.subsections_via_symbols
