	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tb10x_pinctrl_set_config
_tb10x_pinctrl_set_config:              ## @tb10x_pinctrl_set_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%edx, (%rax,%rcx)
	movl	(%rdi), %edi
	callq	_ioread32
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_PCFG_PORT_MASK
	notl	%eax
	andl	%eax, %r12d
	movq	_PCFG_PORT_BITWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	imull	%r15d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%r15d, %edi
	callq	_PCFG_PORT_MASK
	andl	%eax, %ebx
	orl	%r12d, %ebx
	movl	(%r14), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCFG_PORT_BITWIDTH,4,2         ## @PCFG_PORT_BITWIDTH
	.no_dead_strip	_tb10x_pinctrl_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tb10x_pinctrl_set_config
_tb10x_pinctrl_set_config:              ; @tb10x_pinctrl_set_config
	.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
	ldr	x8, [x0, #8]
	add	x9, x8, w1, uxtw #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w9, w1
	lsl	x9, x9, #4
	str	w2, [x8, x9]
	ldr	w0, [x0]
	bl	_ioread32
	mov	x22, x0
	mov	x0, x20
	bl	_PCFG_PORT_MASK
	bic	w22, w22, w0
Lloh0:
	adrp	x8, _PCFG_PORT_BITWIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCFG_PORT_BITWIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w8, w20
	lsl	w21, w21, w8
	mov	x0, x20
	bl	_PCFG_PORT_MASK
	and	w8, w21, w0
	orr	w0, w8, w22
	ldr	w1, [x19]
	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	_iowrite32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCFG_PORT_BITWIDTH,4,2         ; @PCFG_PORT_BITWIDTH
	.no_dead_strip	_tb10x_pinctrl_set_config
.subsections_via_symbols
