	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc18xx_pmx_set
_lpc18xx_pmx_set:                       ## @lpc18xx_pmx_set
	.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	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	_lpc18xx_pins@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %r13
	movq	(%r13), %rax
	movq	_TYPE_USB1@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_3
## %bb.1:
	movq	_FUNC_USB1@GOTPCREL(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_TYPE_I2C0@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_5
## %bb.4:
	movq	_FUNC_I2C0@GOTPCREL(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	cmpl	%r12d, (%rsi)
	je	LBB0_20
LBB0_19:
	movl	(%r15), %edi
	movl	(%rcx,%rdx), %edx
	movq	_lpc18xx_function_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_5:
	movq	_FUNC_ADC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_12
## %bb.6:
	movq	_LPC18XX_ANALOG_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_12
## %bb.7:
	movq	_LPC18XX_SCU_ANALOG_PIN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r13), %esi
	addl	(%r14), %esi
	callq	_writel
	movl	8(%r13), %edi
	callq	_LPC18XX_ANALOG_ADC
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_LPC18XX_SCU_REG_ENAIO0@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	movq	_FUNC_DAC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_15
## %bb.13:
	movq	_LPC18XX_ANALOG_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_15
## %bb.14:
	movq	_LPC18XX_SCU_ANALOG_PIN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r13), %esi
	addl	(%r14), %esi
	callq	_writel
	movq	_LPC18XX_SCU_REG_ENAIO2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	(%r14), %edi
	callq	_readl
	movq	_LPC18XX_SCU_REG_ENAIO2_DAC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	addl	(%r14), %esi
	movl	%eax, %edi
	jmp	LBB0_11
LBB0_15:
	movq	_LPC18XX_SCU_FUNC_PER_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.16:
	movq	16(%r13), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rsi,%rbx,4)
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_17
	jmp	LBB0_19
LBB0_8:
	movq	_LPC18XX_SCU_REG_ENAIO1@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	movl	(%r14), %edi
	addl	%ebx, %edi
	callq	_readl
	movq	_LPC18XX_ANALOG_BIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	8(%r13), %edi
	orl	%eax, %edi
	addl	(%r14), %ebx
	movl	%ebx, %esi
	jmp	LBB0_11
LBB0_21:
	movl	12(%r13), %edi
	addl	(%r14), %edi
	callq	_readl
	movq	_LPC18XX_SCU_PIN_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%ecx, %ebx
	movl	12(%r13), %esi
	addl	(%r14), %esi
	movl	%ebx, %edi
LBB0_11:
	callq	_writel
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lpc18xx_pins,8,3               ## @lpc18xx_pins
	.comm	_TYPE_USB1,8,3                  ## @TYPE_USB1
	.comm	_FUNC_USB1,4,2                  ## @FUNC_USB1
	.comm	_TYPE_I2C0,8,3                  ## @TYPE_I2C0
	.comm	_FUNC_I2C0,4,2                  ## @FUNC_I2C0
	.comm	_FUNC_ADC,4,2                   ## @FUNC_ADC
	.comm	_LPC18XX_ANALOG_PIN,4,2         ## @LPC18XX_ANALOG_PIN
	.comm	_LPC18XX_SCU_ANALOG_PIN_CFG,4,2 ## @LPC18XX_SCU_ANALOG_PIN_CFG
	.comm	_LPC18XX_SCU_REG_ENAIO0,4,2     ## @LPC18XX_SCU_REG_ENAIO0
	.comm	_LPC18XX_SCU_REG_ENAIO1,4,2     ## @LPC18XX_SCU_REG_ENAIO1
	.comm	_LPC18XX_ANALOG_BIT_MASK,4,2    ## @LPC18XX_ANALOG_BIT_MASK
	.comm	_FUNC_DAC,4,2                   ## @FUNC_DAC
	.comm	_LPC18XX_SCU_REG_ENAIO2,4,2     ## @LPC18XX_SCU_REG_ENAIO2
	.comm	_LPC18XX_SCU_REG_ENAIO2_DAC,4,2 ## @LPC18XX_SCU_REG_ENAIO2_DAC
	.comm	_LPC18XX_SCU_FUNC_PER_PIN,4,2   ## @LPC18XX_SCU_FUNC_PER_PIN
	.comm	_LPC18XX_SCU_PIN_MODE_MASK,4,2  ## @LPC18XX_SCU_PIN_MODE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pin %s can't be %s\n"

	.comm	_lpc18xx_function_names,8,3     ## @lpc18xx_function_names
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lpc18xx_pmx_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc18xx_pmx_set
_lpc18xx_pmx_set:                       ; @lpc18xx_pmx_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
Lloh0:
	adrp	x8, _lpc18xx_pins@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lpc18xx_pins@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x8, w22, uxtw #4
	ldr	x23, [x9, #8]
	ldr	x9, [x23]
Lloh3:
	adrp	x10, _TYPE_USB1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TYPE_USB1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _FUNC_USB1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FUNC_USB1@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x10, _TYPE_I2C0@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TYPE_I2C0@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x9, _FUNC_I2C0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FUNC_I2C0@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	cmp	w9, w20
	b.eq	LBB0_19
LBB0_5:
	mov	w9, w22
	lsl	x9, x9, #4
	ldr	w2, [x8, x9]
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _lpc18xx_function_names@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lpc18xx_function_names@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	w3, [x8, w20, uxtw #2]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_6:
	mov	x19, x0
Lloh21:
	adrp	x9, _FUNC_ADC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FUNC_ADC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [x23, #8]
Lloh24:
	adrp	x10, _LPC18XX_ANALOG_PIN@GOTPAGE
Lloh25:
	ldr	x10, [x10, _LPC18XX_ANALOG_PIN@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _LPC18XX_SCU_ANALOG_PIN_CFG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LPC18XX_SCU_ANALOG_PIN_CFG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w8, [x19]
	ldr	w9, [x23, #12]
	add	w1, w9, w8
	bl	_writel
	ldr	w0, [x23, #8]
	bl	_LPC18XX_ANALOG_ADC
Lloh30:
	adrp	x8, _LPC18XX_SCU_REG_ENAIO0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LPC18XX_SCU_REG_ENAIO0@GOTPAGEOFF]
Lloh32:
	adrp	x9, _LPC18XX_SCU_REG_ENAIO1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LPC18XX_SCU_REG_ENAIO1@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	ldr	w8, [x19]
	add	w0, w8, w20
	bl	_readl
Lloh34:
	adrp	x8, _LPC18XX_ANALOG_BIT_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LPC18XX_ANALOG_BIT_MASK@GOTPAGEOFF]
	ldr	w9, [x23, #8]
Lloh36:
	ldr	w8, [x8]
	and	w8, w8, w9
	orr	w0, w8, w0
	ldr	w8, [x19]
	add	w1, w8, w20
	b	LBB0_18
LBB0_9:
Lloh37:
	adrp	x9, _FUNC_DAC@GOTPAGE
Lloh38:
	ldr	x9, [x9, _FUNC_DAC@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_12
; %bb.10:
	ldr	w9, [x23, #8]
Lloh40:
	adrp	x10, _LPC18XX_ANALOG_PIN@GOTPAGE
Lloh41:
	ldr	x10, [x10, _LPC18XX_ANALOG_PIN@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.11:
Lloh43:
	adrp	x8, _LPC18XX_SCU_ANALOG_PIN_CFG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LPC18XX_SCU_ANALOG_PIN_CFG@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	w8, [x19]
	ldr	w9, [x23, #12]
	add	w1, w9, w8
	bl	_writel
	ldr	w8, [x19]
Lloh46:
	adrp	x20, _LPC18XX_SCU_REG_ENAIO2@GOTPAGE
Lloh47:
	ldr	x20, [x20, _LPC18XX_SCU_REG_ENAIO2@GOTPAGEOFF]
	ldr	w9, [x20]
	add	w0, w9, w8
	bl	_readl
Lloh48:
	adrp	x8, _LPC18XX_SCU_REG_ENAIO2_DAC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _LPC18XX_SCU_REG_ENAIO2_DAC@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w8, [x19]
	ldr	w9, [x20]
	b	LBB0_17
LBB0_12:
Lloh51:
	adrp	x9, _LPC18XX_SCU_FUNC_PER_PIN@GOTPAGE
Lloh52:
	ldr	x9, [x9, _LPC18XX_SCU_FUNC_PER_PIN@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.13:
	mov	x24, #0
	ldr	x10, [x23, #16]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x24, lsl #2]
	cmp	w11, w20
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	cmp	x9, x24
	b.ne	LBB0_14
	b	LBB0_5
LBB0_16:
	ldr	w8, [x19]
	ldr	w9, [x23, #12]
	add	w0, w9, w8
	bl	_readl
Lloh54:
	adrp	x8, _LPC18XX_SCU_PIN_MODE_MASK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _LPC18XX_SCU_PIN_MODE_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w0, w8, w24
	ldr	w8, [x19]
	ldr	w9, [x23, #12]
LBB0_17:
	add	w1, w9, w8
LBB0_18:
	bl	_writel
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_lpc18xx_pins,8,3               ; @lpc18xx_pins
	.comm	_TYPE_USB1,8,3                  ; @TYPE_USB1
	.comm	_FUNC_USB1,4,2                  ; @FUNC_USB1
	.comm	_TYPE_I2C0,8,3                  ; @TYPE_I2C0
	.comm	_FUNC_I2C0,4,2                  ; @FUNC_I2C0
	.comm	_FUNC_ADC,4,2                   ; @FUNC_ADC
	.comm	_LPC18XX_ANALOG_PIN,4,2         ; @LPC18XX_ANALOG_PIN
	.comm	_LPC18XX_SCU_ANALOG_PIN_CFG,4,2 ; @LPC18XX_SCU_ANALOG_PIN_CFG
	.comm	_LPC18XX_SCU_REG_ENAIO0,4,2     ; @LPC18XX_SCU_REG_ENAIO0
	.comm	_LPC18XX_SCU_REG_ENAIO1,4,2     ; @LPC18XX_SCU_REG_ENAIO1
	.comm	_LPC18XX_ANALOG_BIT_MASK,4,2    ; @LPC18XX_ANALOG_BIT_MASK
	.comm	_FUNC_DAC,4,2                   ; @FUNC_DAC
	.comm	_LPC18XX_SCU_REG_ENAIO2,4,2     ; @LPC18XX_SCU_REG_ENAIO2
	.comm	_LPC18XX_SCU_REG_ENAIO2_DAC,4,2 ; @LPC18XX_SCU_REG_ENAIO2_DAC
	.comm	_LPC18XX_SCU_FUNC_PER_PIN,4,2   ; @LPC18XX_SCU_FUNC_PER_PIN
	.comm	_LPC18XX_SCU_PIN_MODE_MASK,4,2  ; @LPC18XX_SCU_PIN_MODE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pin %s can't be %s\n"

	.comm	_lpc18xx_function_names,8,3     ; @lpc18xx_function_names
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lpc18xx_pmx_set
.subsections_via_symbols
