	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_set_bank
_enc28j60_set_bank:                     ## @enc28j60_set_bank
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_BANK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%esi, %ebx
	movq	_EIE@GOTPCREL(%rip), %rax
	movq	_ECON1@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmpl	%esi, (%rax)
	jg	LBB0_2
## %bb.1:
	cmpl	%esi, %edx
	jge	LBB0_13
LBB0_2:
	sarl	$5, %ebx
	movq	_ECON1_BSEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	andl	%ebx, %eax
	movl	(%r14), %esi
	andl	%ecx, %esi
	cmpl	%esi, %eax
	je	LBB0_7
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_ENC28J60_BIT_FIELD_CLR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ENC28J60_BIT_FIELD_SET@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_spi_write_op
LBB0_7:
	movq	_ECON1_BSEL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	andl	%ebx, %eax
	movl	(%r14), %edx
	andl	%ecx, %edx
	cmpl	%edx, %eax
	je	LBB0_12
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:
	movq	_ENC28J60_BIT_FIELD_CLR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ENC28J60_BIT_FIELD_SET@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_spi_write_op
LBB0_12:
	movl	%ebx, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BANK_MASK,4,2                  ## @BANK_MASK
	.comm	_EIE,4,2                        ## @EIE
	.comm	_ECON1,4,2                      ## @ECON1
	.comm	_ECON1_BSEL0,4,2                ## @ECON1_BSEL0
	.comm	_ENC28J60_BIT_FIELD_SET,4,2     ## @ENC28J60_BIT_FIELD_SET
	.comm	_ENC28J60_BIT_FIELD_CLR,4,2     ## @ENC28J60_BIT_FIELD_CLR
	.comm	_ECON1_BSEL1,4,2                ## @ECON1_BSEL1
	.no_dead_strip	_enc28j60_set_bank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_set_bank
_enc28j60_set_bank:                     ; @enc28j60_set_bank
	.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
Lloh0:
	adrp	x8, _EIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _ECON1@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ECON1@GOTPAGEOFF]
	ldr	w2, [x20]
	cmp	w8, w1
	ccmp	w2, w1, #8, le
	b.ge	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _BANK_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BANK_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w1
	asr	w21, w8, #5
Lloh8:
	adrp	x8, _ECON1_BSEL0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECON1_BSEL0@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	and	w8, w3, w21
	ldr	w9, [x0]
	and	w9, w9, w3
Lloh11:
	adrp	x22, _ENC28J60_BIT_FIELD_CLR@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ENC28J60_BIT_FIELD_CLR@GOTPAGEOFF]
Lloh13:
	adrp	x23, _ENC28J60_BIT_FIELD_SET@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ENC28J60_BIT_FIELD_SET@GOTPAGEOFF]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #0
	csel	x8, x22, x23, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_spi_write_op
LBB0_3:
Lloh15:
	adrp	x8, _ECON1_BSEL1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ECON1_BSEL1@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	and	w8, w3, w21
	ldr	w9, [x19]
	and	w9, w9, w3
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #0
	csel	x8, x22, x23, eq
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_spi_write_op
LBB0_5:
	str	w21, [x19]
LBB0_6:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BANK_MASK,4,2                  ; @BANK_MASK
	.comm	_EIE,4,2                        ; @EIE
	.comm	_ECON1,4,2                      ; @ECON1
	.comm	_ECON1_BSEL0,4,2                ; @ECON1_BSEL0
	.comm	_ENC28J60_BIT_FIELD_SET,4,2     ; @ENC28J60_BIT_FIELD_SET
	.comm	_ENC28J60_BIT_FIELD_CLR,4,2     ; @ENC28J60_BIT_FIELD_CLR
	.comm	_ECON1_BSEL1,4,2                ; @ECON1_BSEL1
	.no_dead_strip	_enc28j60_set_bank
.subsections_via_symbols
