	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elektor_match
_elektor_match:                         ## @elektor_match
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_mmapped@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	_base@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	je	LBB0_3
## %bb.1:
	cmpl	$819199, %edx                   ## imm = 0xC7FFF
	jg	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %eax
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	popq	%rbp
	retq
LBB0_4:
	movq	_DEFAULT_BASE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmapped,4,2                    ## @mmapped
	.comm	_base,4,2                       ## @base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect base address (%#x) specified for mmapped I/O\n"

	.comm	_DEFAULT_BASE,4,2               ## @DEFAULT_BASE
	.comm	_I2C_PCF_CLK,4,2                ## @I2C_PCF_CLK
	.comm	_I2C_PCF_TRNS90,4,2             ## @I2C_PCF_TRNS90
	.comm	_PCI_DEVICE_ID_CONTAQ_82C693,4,2 ## @PCI_DEVICE_ID_CONTAQ_82C693
	.comm	_PCI_VENDOR_ID_CONTAQ,4,2       ## @PCI_VENDOR_ID_CONTAQ
	.comm	_clock,4,2                      ## @clock
	.no_dead_strip	_elektor_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elektor_match
_elektor_match:                         ; @elektor_match
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _mmapped@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmapped@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _base@GOTPAGE
Lloh4:
	ldr	x8, [x8, _base@GOTPAGEOFF]
	ldr	w2, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	cmp	w2, #200, lsl #12               ; =819200
	b.ge	LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbnz	w2, LBB0_5
; %bb.4:
Lloh7:
	adrp	x9, _DEFAULT_BASE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DEFAULT_BASE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mmapped,4,2                    ; @mmapped
	.comm	_base,4,2                       ; @base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect base address (%#x) specified for mmapped I/O\n"

	.comm	_DEFAULT_BASE,4,2               ; @DEFAULT_BASE
	.comm	_I2C_PCF_CLK,4,2                ; @I2C_PCF_CLK
	.comm	_I2C_PCF_TRNS90,4,2             ; @I2C_PCF_TRNS90
	.comm	_PCI_DEVICE_ID_CONTAQ_82C693,4,2 ; @PCI_DEVICE_ID_CONTAQ_82C693
	.comm	_PCI_VENDOR_ID_CONTAQ,4,2       ; @PCI_VENDOR_ID_CONTAQ
	.comm	_clock,4,2                      ; @clock
	.no_dead_strip	_elektor_match
.subsections_via_symbols
