	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regmap_encx24j600_sfr_update
_regmap_encx24j600_sfr_update:          ## @regmap_encx24j600_sfr_update
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %rbx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	%esi, -108(%rbp)
	movq	_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BANK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_BANK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leaq	-100(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movl	$4, -88(%rbp)
	leaq	-108(%rbp), %r12
	movq	%r12, -80(%rbp)
	movl	$4, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movl	%ebx, -56(%rbp)
	cmpl	$127, %esi
	jg	LBB0_8
## %bb.1:
	andl	%esi, %edi
	orl	%edi, %r9d
	movl	%r9d, -100(%rbp)
	xorl	%ebx, %ebx
	cmpl	$21, %edi
	jg	LBB0_4
## %bb.2:
	cmpl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_encx24j600_switch_bank
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_5
LBB0_8:
	addl	$-128, %esi
	cmpl	$7, %esi
	ja	LBB0_17
## %bb.9:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	_WUDAWRPT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movq	_WUDARDPT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_14:
	movq	_WRXWRPT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_WRXRDPT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movq	_WGPWRPT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_WGPRDPT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
LBB0_5:
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-96(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	cmpl	%r14d, -100(%rbp)
	jne	LBB0_7
## %bb.6:
	leaq	-80(%rbp), %rdi
	movq	%r12, -80(%rbp)
	leaq	-104(%rbp), %rsi
	callq	_spi_message_add_tail
LBB0_7:
	leaq	-64(%rbp), %rdi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	callq	_spi_sync
	movl	%eax, %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_10
	.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	_WGPRDPT,4,2                    ## @WGPRDPT
	.comm	_WGPWRPT,4,2                    ## @WGPWRPT
	.comm	_WRXRDPT,4,2                    ## @WRXRDPT
	.comm	_WRXWRPT,4,2                    ## @WRXWRPT
	.comm	_WUDARDPT,4,2                   ## @WUDARDPT
	.comm	_WUDAWRPT,4,2                   ## @WUDAWRPT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_regmap_encx24j600_sfr_update
.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_update
_regmap_encx24j600_sfr_update:          ; @regmap_encx24j600_sfr_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADDR_MASK@GOTPAGEOFF]
	str	w1, [sp, #20]
Lloh5:
	ldr	w10, [x8]
Lloh6:
	adrp	x8, _BANK_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BANK_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x11, _BANK_SHIFT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _BANK_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
Lloh11:
	ldr	w8, [x11]
	add	x11, sp, #16
	str	x11, [sp, #24]
	mov	w11, #4
	str	w11, [sp, #32]
	add	x12, sp, #20
	str	x12, [sp, #40]
	str	w11, [sp, #48]
	str	x2, [sp, #56]
	str	w3, [sp, #64]
	cmp	w1, #127
	b.gt	LBB0_4
; %bb.1:
	and	w10, w10, w1
	orr	w11, w10, w5
	str	w11, [sp, #16]
	cmp	w10, #21
	b.gt	LBB0_3
; %bb.2:
	and	w9, w9, w1
	asr	w1, w9, w8
	ldr	w8, [x19]
	cmp	w8, w1
	b.ne	LBB0_7
LBB0_3:
	mov	w21, #0
	b	LBB0_8
LBB0_4:
	sub	w8, w1, #128
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.5:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh14:
	adrp	x8, _WUDAWRPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WUDAWRPT@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	mov	x0, x19
	bl	_encx24j600_switch_bank
	mov	x21, x0
LBB0_8:
	mov	x0, x21
	bl	_unlikely
	cbnz	x0, LBB0_19
	b	LBB0_16
LBB0_9:
Lloh16:
	adrp	x8, _WUDARDPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WUDARDPT@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_11:
Lloh21:
	adrp	x8, _WRXWRPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WRXWRPT@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh23:
	adrp	x8, _WRXRDPT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WRXRDPT@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh25:
	adrp	x8, _WGPWRPT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WGPWRPT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh27:
	adrp	x8, _WGPRDPT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WGPRDPT@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_16:
	add	x0, sp, #8
	bl	_spi_message_init
	add	x21, sp, #24
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_spi_message_add_tail
	ldr	w8, [sp, #16]
	cmp	w8, w20
	b.ne	LBB0_18
; %bb.17:
	add	x0, x21, #16
	add	x8, sp, #20
	str	x8, [sp, #40]
	add	x1, sp, #8
	bl	_spi_message_add_tail
LBB0_18:
	add	x0, x21, #32
	add	x1, sp, #8
	bl	_spi_message_add_tail
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_spi_sync
	mov	x21, x0
LBB0_19:
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-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	_WGPRDPT,4,2                    ; @WGPRDPT
	.comm	_WGPWRPT,4,2                    ; @WGPWRPT
	.comm	_WRXRDPT,4,2                    ; @WRXRDPT
	.comm	_WRXWRPT,4,2                    ; @WRXWRPT
	.comm	_WUDARDPT,4,2                   ; @WUDARDPT
	.comm	_WUDAWRPT,4,2                   ; @WUDAWRPT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_regmap_encx24j600_sfr_update
.subsections_via_symbols
