	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_translate_reg_addr
_wl1251_translate_reg_addr:             ## @wl1251_translate_reg_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_REGISTERS_BASE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_4
## %bb.1:
	movq	_ACX_REG_TABLE_LEN@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	_wl1251_io_reg_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %esi
LBB0_4:
	subl	(%rdi), %esi
	addl	4(%rdi), %esi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_wl1251_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
LBB0_5:
	movl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REGISTERS_BASE,4,2             ## @REGISTERS_BASE
	.comm	_ACX_REG_TABLE_LEN,4,2          ## @ACX_REG_TABLE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address out of range (%d)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_wl1251_io_reg_table,8,3        ## @wl1251_io_reg_table
	.no_dead_strip	_wl1251_translate_reg_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_translate_reg_addr
_wl1251_translate_reg_addr:             ; @wl1251_translate_reg_addr
	.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, _REGISTERS_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGISTERS_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ACX_REG_TABLE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACX_REG_TABLE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _wl1251_io_reg_table@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wl1251_io_reg_table@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8, w1, sxtw #2]
LBB0_3:
	ldp	w8, w9, [x0]
	sub	w8, w1, w8
	add	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1251_error
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REGISTERS_BASE,4,2             ; @REGISTERS_BASE
	.comm	_ACX_REG_TABLE_LEN,4,2          ; @ACX_REG_TABLE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address out of range (%d)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_wl1251_io_reg_table,8,3        ; @wl1251_io_reg_table
	.no_dead_strip	_wl1251_translate_reg_addr
.subsections_via_symbols
