	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcs_add_pin
_pcs_add_pin:                           ## @pcs_add_pin
	.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
	movq	%rdi, %rbx
	movl	16(%rdi), %r14d
	movl	52(%rdi), %edx
	cmpl	%edx, %r14d
	jge	LBB0_1
## %bb.2:
	movslq	%r14d, %r13
	cmpl	$0, 56(%rbx)
	je	LBB0_5
## %bb.3:
	movl	%esi, %r15d
	movl	8(%rbx), %edi
	addl	%esi, %edi
	callq	*(%rbx)
	testl	%eax, 56(%rbx)
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movl	48(%rbx), %edi
	movq	40(%rbx), %rax
	movl	(%rax), %edx
	addl	%r15d, %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %ecx
	callq	_dev_dbg
	movl	56(%rbx), %edi
	notl	%edi
	andl	%r12d, %edi
	addl	8(%rbx), %r15d
	movl	%r15d, %esi
	callq	*32(%rbx)
LBB0_5:
	movq	24(%rbx), %rax
	movl	%r14d, (%rax,%r13,4)
	incl	16(%rbx)
	jmp	LBB0_6
LBB0_1:
	movl	48(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many pins, max %i\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"irq enabled at boot for pin at %lx (%x), clearing\n"

	.no_dead_strip	_pcs_add_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcs_add_pin
_pcs_add_pin:                           ; @pcs_add_pin
	.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	x20, x0
	ldr	w19, [x0, #16]
	ldr	w2, [x0, #52]
	cmp	w19, w2
	b.ge	LBB0_5
; %bb.1:
	sxtw	x23, w19
	ldr	w8, [x20, #56]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x21, x1
	ldr	x8, [x20]
	ldr	w9, [x20, #8]
	add	w0, w9, w1
	blr	x8
	ldr	w8, [x20, #56]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	w0, [x20, #48]
	ldr	x8, [x20, #40]
	ldr	w8, [x8]
	add	w2, w8, w21
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_dev_dbg
	ldr	w8, [x20, #56]
	bic	w0, w22, w8
	ldr	x8, [x20, #32]
	ldr	w9, [x20, #8]
	add	w1, w9, w21
	blr	x8
LBB0_4:
	ldr	x8, [x20, #24]
	str	w19, [x8, x23, lsl #2]
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20, #48]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many pins, max %i\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"irq enabled at boot for pin at %lx (%x), clearing\n"

	.no_dead_strip	_pcs_add_pin
.subsections_via_symbols
