	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regmap_encx24j600_sfr_read
_regmap_encx24j600_sfr_read:            ## @regmap_encx24j600_sfr_read
	.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	%rcx, %r15
	movq	%rdx, %r9
	movl	%esi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BANK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r13d, %esi
	movq	_BANK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	cmpl	$127, %r13d
	jg	LBB0_6
## %bb.1:
	movq	_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_RCRCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	%eax, %r14d
	xorl	%ebx, %ebx
	cmpl	$21, %eax
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	jg	LBB0_2
## %bb.3:
	movq	%rdi, %r12
	cmpl	%esi, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_encx24j600_switch_bank
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_6:
	leal	-128(%r13), %eax
	cmpl	$7, %eax
	ja	LBB0_13
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	_RUDAWRPT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	%rdi, %r12
LBB0_5:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	%r12, %rdi
	jne	LBB0_19
	jmp	LBB0_16
LBB0_11:
	movq	_RUDARDPT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_10:
	movq	_RRXWRPT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_RRXRDPT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_RGPWRPT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_RGPRDPT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %r14d
LBB0_16:
	movl	%r14d, -56(%rbp)
	movq	_RCRU@GOTPCREL(%rip), %rax
	movl	$1, %edx
	cmpl	(%rax), %r14d
	jne	LBB0_18
## %bb.17:
	movl	%r13d, -52(%rbp)
	movl	$2, %edx
LBB0_18:
	movl	4(%rdi), %edi
	leaq	-56(%rbp), %rsi
	movq	%r9, %rcx
	movq	%r15, %r8
	callq	_spi_write_then_read
	movl	%eax, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_ADDR_MASK,4,2                  ## @ADDR_MASK
	.comm	_BANK_MASK,4,2                  ## @BANK_MASK
	.comm	_BANK_SHIFT,4,2                 ## @BANK_SHIFT
	.comm	_RCRU,4,2                       ## @RCRU
	.comm	_RCRCODE,4,2                    ## @RCRCODE
	.comm	_RGPRDPT,4,2                    ## @RGPRDPT
	.comm	_RGPWRPT,4,2                    ## @RGPWRPT
	.comm	_RRXRDPT,4,2                    ## @RRXRDPT
	.comm	_RRXWRPT,4,2                    ## @RRXWRPT
	.comm	_RUDARDPT,4,2                   ## @RUDARDPT
	.comm	_RUDAWRPT,4,2                   ## @RUDAWRPT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_regmap_encx24j600_sfr_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regmap_encx24j600_sfr_read
_regmap_encx24j600_sfr_read:            ; @regmap_encx24j600_sfr_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cmp	w1, #127
	b.gt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADDR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w24, w8, w22
Lloh6:
	adrp	x8, _RCRCODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCRCODE@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	cmp	w24, #21
	b.gt	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _BANK_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BANK_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh12:
	adrp	x9, _BANK_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BANK_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w1, w8, w9
	ldr	w8, [x21]
	cmp	w8, w1
	b.ne	LBB0_7
LBB0_3:
	mov	w23, #0
	b	LBB0_8
LBB0_4:
	sub	w8, w22, #128
	cmp	w8, #7
	b.hi	LBB0_11
; %bb.5:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh17:
	adrp	x8, _RUDAWRPT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RUDAWRPT@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
	mov	x0, x21
	bl	_encx24j600_switch_bank
	mov	x23, x0
LBB0_8:
	mov	x0, x23
	bl	_unlikely
	cbnz	x0, LBB0_21
; %bb.9:
	orr	w8, w25, w24
	b	LBB0_17
LBB0_10:
Lloh19:
	adrp	x8, _RUDARDPT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RUDARDPT@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_12:
Lloh24:
	adrp	x8, _RRXWRPT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RRXWRPT@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh26:
	adrp	x8, _RRXRDPT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RRXRDPT@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh28:
	adrp	x8, _RGPWRPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RGPWRPT@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh30:
	adrp	x8, _RGPRDPT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RGPRDPT@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
LBB0_17:
	str	w8, [sp]
Lloh32:
	adrp	x9, _RCRU@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RCRU@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
	str	w22, [sp, #4]
	mov	w2, #2
	b	LBB0_20
LBB0_19:
	mov	w2, #1
LBB0_20:
	ldr	w0, [x21, #4]
	mov	x1, sp
	mov	x3, x20
	mov	x4, x19
	bl	_spi_write_then_read
	mov	x23, x0
LBB0_21:
	ldr	x8, [sp, #8]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
                                        ; -- End function
	.comm	_ADDR_MASK,4,2                  ; @ADDR_MASK
	.comm	_BANK_MASK,4,2                  ; @BANK_MASK
	.comm	_BANK_SHIFT,4,2                 ; @BANK_SHIFT
	.comm	_RCRU,4,2                       ; @RCRU
	.comm	_RCRCODE,4,2                    ; @RCRCODE
	.comm	_RGPRDPT,4,2                    ; @RGPRDPT
	.comm	_RGPWRPT,4,2                    ; @RGPWRPT
	.comm	_RRXRDPT,4,2                    ; @RRXRDPT
	.comm	_RRXWRPT,4,2                    ; @RRXWRPT
	.comm	_RUDARDPT,4,2                   ; @RUDARDPT
	.comm	_RUDAWRPT,4,2                   ; @RUDAWRPT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_regmap_encx24j600_sfr_read
.subsections_via_symbols
