	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc18xx_pconf_set
_lpc18xx_pconf_set:                     ## @lpc18xx_pconf_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_lpc18xx_get_pin_caps
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	8(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, -44(%rbp)
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r14d
	movq	(%rbx,%r15,8), %rdi
	callq	_pinconf_to_config_argument
	movq	(%r13), %rcx
	movq	_TYPE_I2C0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	leaq	-44(%rbp), %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_lpc18xx_pconf_set_i2c0
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_TYPE_USB1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	leaq	-44(%rbp), %rcx
	callq	_lpc18xx_pconf_set_usb1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	leaq	-44(%rbp), %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	%r13, %r9
	callq	_lpc18xx_pconf_set_pin
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.11:
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movq	8(%r13), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TYPE_I2C0,8,3                  ## @TYPE_I2C0
	.comm	_TYPE_USB1,8,3                  ## @TYPE_USB1
	.no_dead_strip	_lpc18xx_pconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc18xx_pconf_set
_lpc18xx_pconf_set:                     ; @lpc18xx_pconf_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	x0, x22
	bl	_lpc18xx_get_pin_caps
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x0, #8]
	add	x0, x9, x8
	bl	_readl
	str	w0, [sp, #12]
	cbz	w24, LBB0_11
; %bb.2:
	mov	w25, w24
Lloh0:
	adrp	x26, _TYPE_I2C0@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TYPE_I2C0@GOTPAGEOFF]
Lloh2:
	adrp	x27, _TYPE_USB1@GOTPAGE
Lloh3:
	ldr	x27, [x27, _TYPE_USB1@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x24
	mov	x4, x22
	bl	_lpc18xx_pconf_set_i2c0
	cbnz	w0, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #8
	subs	x25, x25, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_pinconf_to_config_param
	mov	x24, x0
	ldr	x0, [x20]
	bl	_pinconf_to_config_argument
	mov	x2, x0
	ldr	x8, [x21]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x27]
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x24
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_lpc18xx_pconf_set_usb1
	cbz	w0, LBB0_4
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x4, x22
	mov	x5, x21
	bl	_lpc18xx_pconf_set_pin
	cbz	w0, LBB0_4
	b	LBB0_12
LBB0_9:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	ldr	w0, [sp, #12]
LBB0_11:
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TYPE_I2C0,8,3                  ; @TYPE_I2C0
	.comm	_TYPE_USB1,8,3                  ; @TYPE_USB1
	.no_dead_strip	_lpc18xx_pconf_set
.subsections_via_symbols
