	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpic_config                 ## -- Begin function openpic_config
	.p2align	4, 0x90
_openpic_config:                        ## @openpic_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	%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	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_device_get_softc
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_OPENPIC_SRC_VECTOR
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_openpic_read
	movq	_INTR_POLARITY_LOW@GOTPCREL(%rip), %rcx
	movq	_OPENPIC_POLARITY_POSITIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movl	%ebx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%eax, %ebx
	cmpl	%r12d, (%rcx)
	cmovel	%edx, %ebx
	movq	_INTR_TRIGGER_EDGE@GOTPCREL(%rip), %rax
	movq	_OPENPIC_SENSE_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%ebx, %edx
	orl	%ecx, %ebx
	cmpl	%r15d, (%rax)
	cmovel	%edx, %ebx
	movl	%r14d, %edi
	callq	_OPENPIC_SRC_VECTOR
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_openpic_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_POLARITY_LOW,4,2          ## @INTR_POLARITY_LOW
	.comm	_OPENPIC_POLARITY_POSITIVE,4,2  ## @OPENPIC_POLARITY_POSITIVE
	.comm	_INTR_TRIGGER_EDGE,4,2          ## @INTR_TRIGGER_EDGE
	.comm	_OPENPIC_SENSE_LEVEL,4,2        ## @OPENPIC_SENSE_LEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpic_config                 ; -- Begin function openpic_config
	.p2align	2
_openpic_config:                        ; @openpic_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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_device_get_softc
	mov	x22, x0
	mov	x0, x21
	bl	_OPENPIC_SRC_VECTOR
	mov	x1, x0
	mov	x0, x22
	bl	_openpic_read
Lloh0:
	adrp	x8, _INTR_POLARITY_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTR_POLARITY_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _OPENPIC_POLARITY_POSITIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPENPIC_POLARITY_POSITIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
	cmp	w8, w19
	csel	w8, w10, w9, eq
Lloh6:
	adrp	x9, _INTR_TRIGGER_EDGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTR_TRIGGER_EDGE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _OPENPIC_SENSE_LEVEL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OPENPIC_SENSE_LEVEL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w8, w10, w8
	cmp	w9, w20
	csel	w19, w11, w8, eq
	mov	x0, x21
	bl	_OPENPIC_SRC_VECTOR
	mov	x1, x0
	mov	x0, x22
	mov	x2, 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	_openpic_write
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_POLARITY_LOW,4,2          ; @INTR_POLARITY_LOW
	.comm	_OPENPIC_POLARITY_POSITIVE,4,2  ; @OPENPIC_POLARITY_POSITIVE
	.comm	_INTR_TRIGGER_EDGE,4,2          ; @INTR_TRIGGER_EDGE
	.comm	_OPENPIC_SENSE_LEVEL,4,2        ; @OPENPIC_SENSE_LEVEL
.subsections_via_symbols
