	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nozomi_read_config_table
_nozomi_read_config_table:              ## @nozomi_read_config_table
	.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
	movq	%rdi, %r12
	addq	$16, %rdi
	movq	72(%r12), %rsi
	movl	$4, %edx
	callq	_read_mem32
	movq	16(%r12), %rdx
	movq	_CONFIG_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_1
## %bb.2:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	32(%r12), %rcx
	movq	_TOGGLE_VALID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG1
	movq	%r12, %rdi
	callq	_setup_memory
	movl	48(%r12), %esi
	movq	8(%r12), %rax
	movq	_PORT_MDM@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	shlq	$5, %rdx
	movl	%esi, 24(%rax,%rdx)
	movl	44(%r12), %ecx
	movl	%ecx, 20(%rax,%rdx)
	movl	40(%r12), %ecx
	movq	_PORT_DIAG@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	shlq	$5, %rdi
	movl	%ecx, 20(%rax,%rdi)
	movl	20(%rax,%rdx), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG1
	movq	%r12, %rdi
	callq	_dump_table
	movq	(%rbx), %rax
	movq	_MAX_PORT@GOTPCREL(%rip), %r13
	cmpl	%eax, (%r13)
	jle	LBB0_7
## %bb.5:
	movslq	%eax, %r15
	movq	%r15, %rbx
	shlq	$5, %rbx
	orq	$8, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FIFO_BUFFER_SIZE_UL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_kfifo_alloc
	movq	8(%r12), %rcx
	movl	%eax, 8(%rcx,%rbx)
	leaq	(%rcx,%rbx), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incq	%r15
	movslq	(%r13), %rax
	addq	$32, %rbx
	cmpq	%rax, %r15
	jl	LBB0_6
LBB0_7:
	movq	_CTRL_DL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	movl	%edi, (%r12)
	movl	68(%r12), %esi
	callq	_writew
	movq	_NOZOMI_STATE_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	56(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_1:
	movq	56(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %r14d
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:
	movq	$0, -48(%rbp)
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG1
	movq	24(%r12), %rdx
	movq	56(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r12, %rdi
	callq	_setup_memory
	movq	8(%r12), %rax
	movq	_PORT_MDM@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$5, %rcx
	movq	(%rax,%rcx), %rax
	movq	_CH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_write_mem32
	movq	8(%r12), %rax
	movq	(%rbx), %rcx
	shlq	$5, %rcx
	movq	(%rax,%rcx), %rax
	movq	_CH_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_write_mem32
	movq	_MDM_UL@GOTPCREL(%rip), %rax
	movq	_DIAG_DL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MDM_DL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_writew
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG1
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_MAGIC,8,3               ## @CONFIG_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ConfigTable Bad! 0x%08X != 0x%08X\n"

	.comm	_TOGGLE_VALID,8,3               ## @TOGGLE_VALID
L_.str.1:                               ## @.str.1
	.asciz	"Second phase, configuring card"

	.comm	_PORT_MDM,8,3                   ## @PORT_MDM
	.comm	_PORT_DIAG,8,3                  ## @PORT_DIAG
L_.str.2:                               ## @.str.2
	.asciz	"toggle ports: MDM UL:%d MDM DL:%d, DIAG DL:%d"

	.comm	_MAX_PORT,4,2                   ## @MAX_PORT
	.comm	_FIFO_BUFFER_SIZE_UL,4,2        ## @FIFO_BUFFER_SIZE_UL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_CTRL_DL,4,2                    ## @CTRL_DL
	.comm	_NOZOMI_STATE_ALLOCATED,4,2     ## @NOZOMI_STATE_ALLOCATED
L_.str.3:                               ## @.str.3
	.asciz	"Initialization OK!\n"

L_.str.4:                               ## @.str.4
	.asciz	"First phase: pushing upload buffers, clearing download"

L_.str.5:                               ## @.str.5
	.asciz	"Version of card: %d\n"

	.comm	_CH_A,8,3                       ## @CH_A
	.comm	_CH_B,8,3                       ## @CH_B
	.comm	_MDM_UL,4,2                     ## @MDM_UL
	.comm	_DIAG_DL,4,2                    ## @DIAG_DL
	.comm	_MDM_DL,4,2                     ## @MDM_DL
L_.str.6:                               ## @.str.6
	.asciz	"First phase done"

	.no_dead_strip	_nozomi_read_config_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nozomi_read_config_table
_nozomi_read_config_table:              ; @nozomi_read_config_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	add	x0, x0, #16
	ldr	x1, [x19, #72]
	mov	w2, #4
	bl	_read_mem32
	ldr	x2, [x19, #16]
Lloh0:
	adrp	x8, _CONFIG_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x8]
	cmp	x2, x3
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [x19, #32]
Lloh3:
	adrp	x10, _TOGGLE_VALID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TOGGLE_VALID@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
LBB0_3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG1
	mov	x0, x19
	bl	_setup_memory
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x20, _PORT_MDM@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PORT_MDM@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x9, x8, x9, lsl #5
	ldp	w11, w10, [x19, #44]
	ldr	w12, [x19, #40]
	stp	w11, w10, [x9, #20]
Lloh10:
	adrp	x11, _PORT_DIAG@GOTPAGE
Lloh11:
	ldr	x11, [x11, _PORT_DIAG@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	add	x8, x8, x11, lsl #5
	str	w12, [x8, #20]
	ldr	w8, [x9, #20]
	stp	x8, x12, [sp, #8]
	str	x10, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG1
	mov	x0, x19
	bl	_dump_table
	ldr	x8, [x20]
Lloh15:
	adrp	x20, _MAX_PORT@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MAX_PORT@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, w8
	b.le	LBB0_6
; %bb.4:
	sxtw	x21, w8
	mov	w22, #16
	bfi	x22, x21, #5, #59
Lloh17:
	adrp	x23, _FIFO_BUFFER_SIZE_UL@GOTPAGE
Lloh18:
	ldr	x23, [x23, _FIFO_BUFFER_SIZE_UL@GOTPAGEOFF]
Lloh19:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh20:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	x2, #0
	bl	_kfifo_alloc
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	str	w0, [x8], #-4
	mov	x0, x8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	sub	x0, x8, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #32
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _CTRL_DL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CTRL_DL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	w0, [x19]
	ldr	w1, [x19, #68]
	bl	_writew
Lloh24:
	adrp	x8, _NOZOMI_STATE_ALLOCATED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NOZOMI_STATE_ALLOCATED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	x0, [x19, #56]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	b	LBB0_10
LBB0_7:
	ldr	x0, [x19, #56]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	str	xzr, [sp, #24]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG1
	ldr	x0, [x19, #56]
	ldr	x8, [x19, #24]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_setup_memory
	ldr	x8, [x19, #8]
Lloh35:
	adrp	x20, _PORT_MDM@GOTPAGE
Lloh36:
	ldr	x20, [x20, _PORT_MDM@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #5
	ldr	x8, [x8, x9]
Lloh37:
	adrp	x9, _CH_A@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CH_A@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #24
	mov	w2, #4
	bl	_write_mem32
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	lsl	x9, x9, #5
	ldr	x8, [x8, x9]
Lloh40:
	adrp	x9, _CH_B@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CH_B@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #24
	mov	w2, #4
	bl	_write_mem32
Lloh43:
	adrp	x8, _MDM_UL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MDM_UL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _DIAG_DL@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DIAG_DL@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh49:
	adrp	x9, _MDM_DL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MDM_DL@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w1, [x19, #4]
	bl	_writew
Lloh52:
	adrp	x0, l_.str.6@PAGE
Lloh53:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DBG1
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_MAGIC,8,3               ; @CONFIG_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ConfigTable Bad! 0x%08X != 0x%08X\n"

	.comm	_TOGGLE_VALID,8,3               ; @TOGGLE_VALID
l_.str.1:                               ; @.str.1
	.asciz	"Second phase, configuring card"

	.comm	_PORT_MDM,8,3                   ; @PORT_MDM
	.comm	_PORT_DIAG,8,3                  ; @PORT_DIAG
l_.str.2:                               ; @.str.2
	.asciz	"toggle ports: MDM UL:%d MDM DL:%d, DIAG DL:%d"

	.comm	_MAX_PORT,4,2                   ; @MAX_PORT
	.comm	_FIFO_BUFFER_SIZE_UL,4,2        ; @FIFO_BUFFER_SIZE_UL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_CTRL_DL,4,2                    ; @CTRL_DL
	.comm	_NOZOMI_STATE_ALLOCATED,4,2     ; @NOZOMI_STATE_ALLOCATED
l_.str.3:                               ; @.str.3
	.asciz	"Initialization OK!\n"

l_.str.4:                               ; @.str.4
	.asciz	"First phase: pushing upload buffers, clearing download"

l_.str.5:                               ; @.str.5
	.asciz	"Version of card: %d\n"

	.comm	_CH_A,8,3                       ; @CH_A
	.comm	_CH_B,8,3                       ; @CH_B
	.comm	_MDM_UL,4,2                     ; @MDM_UL
	.comm	_DIAG_DL,4,2                    ; @DIAG_DL
	.comm	_MDM_DL,4,2                     ; @MDM_DL
l_.str.6:                               ; @.str.6
	.asciz	"First phase done"

	.no_dead_strip	_nozomi_read_config_table
.subsections_via_symbols
