	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc18xx_pconf_get
_lpc18xx_pconf_get:                     ## @lpc18xx_pconf_get
	.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
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movl	$0, -44(%rbp)
	movl	%r12d, %edi
	callq	_lpc18xx_get_pin_caps
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	(%rbx), %rcx
	movq	_TYPE_I2C0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_lpc18xx_pconf_get_i2c0
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	movq	_TYPE_USB1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	-44(%rbp), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_lpc18xx_pconf_get_usb1
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_9
LBB0_6:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	movl	%r12d, %r8d
	movq	%rbx, %r9
	callq	_lpc18xx_pconf_get_pin
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	movl	-44(%rbp), %esi
	movl	%r15d, %edi
	callq	_pinconf_to_config_packed
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_9:
	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_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc18xx_pconf_get
_lpc18xx_pconf_get:                     ; @lpc18xx_pconf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x24, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	str	wzr, [sp, #12]
	mov	x0, x21
	bl	_lpc18xx_get_pin_caps
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	x8, [x24]
	ldr	x9, [x0, #8]
	add	x0, x9, x8
	bl	_readl
	mov	x3, x0
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _TYPE_I2C0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPE_I2C0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x3
	mov	x3, x21
	bl	_lpc18xx_pconf_get_i2c0
	tbz	w0, #31, LBB0_7
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x9, _TYPE_USB1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TYPE_USB1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x3
	bl	_lpc18xx_pconf_get_usb1
	tbz	w0, #31, LBB0_7
	b	LBB0_8
LBB0_6:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x20
	mov	x4, x21
	mov	x5, x23
	bl	_lpc18xx_pconf_get_pin
	tbnz	w0, #31, LBB0_8
LBB0_7:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_get
.subsections_via_symbols
