	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_erom_get_addr_desc
_bcma_erom_get_addr_desc:               ## @bcma_erom_get_addr_desc
	.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
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_bcma_erom_get_ent
	movl	%eax, %r12d
	movq	_SCAN_ER_VALID@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_SCAN_ER_TAGX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_SCAN_ER_TAG_ADDR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	movq	_SCAN_ADDR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	cmpl	%ebx, %eax
	jne	LBB0_4
## %bb.3:
	movq	_SCAN_ADDR_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_SCAN_ADDR_PORT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	%r13d, %eax
	jne	LBB0_4
## %bb.5:
	movq	_SCAN_ADDR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	movq	_SCAN_ADDR_AG32@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bcma_erom_get_ent
LBB0_7:
	movq	_SCAN_ADDR_SZ@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_SCAN_ADDR_SZ_SZD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bcma_erom_get_ent
	movq	_SCAN_SIZE_SG32@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bcma_erom_get_ent
	jmp	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	callq	_bcma_erom_push_ent
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCAN_ER_VALID,4,2              ## @SCAN_ER_VALID
	.comm	_SCAN_ER_TAGX,4,2               ## @SCAN_ER_TAGX
	.comm	_SCAN_ER_TAG_ADDR,4,2           ## @SCAN_ER_TAG_ADDR
	.comm	_SCAN_ADDR_TYPE,4,2             ## @SCAN_ADDR_TYPE
	.comm	_SCAN_ADDR_PORT,4,2             ## @SCAN_ADDR_PORT
	.comm	_SCAN_ADDR_PORT_SHIFT,4,2       ## @SCAN_ADDR_PORT_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCAN_ADDR_ADDR,4,2             ## @SCAN_ADDR_ADDR
	.comm	_SCAN_ADDR_AG32,4,2             ## @SCAN_ADDR_AG32
	.comm	_SCAN_ADDR_SZ,4,2               ## @SCAN_ADDR_SZ
	.comm	_SCAN_ADDR_SZ_SZD,4,2           ## @SCAN_ADDR_SZ_SZD
	.comm	_SCAN_SIZE_SZ,4,2               ## @SCAN_SIZE_SZ
	.comm	_SCAN_SIZE_SG32,4,2             ## @SCAN_SIZE_SG32
	.comm	_SCAN_ADDR_SZ_BASE,4,2          ## @SCAN_ADDR_SZ_BASE
	.comm	_SCAN_ADDR_SZ_SHIFT,4,2         ## @SCAN_ADDR_SZ_SHIFT
	.no_dead_strip	_bcma_erom_get_addr_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_erom_get_addr_desc
_bcma_erom_get_addr_desc:               ; @bcma_erom_get_addr_desc
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_bcma_erom_get_ent
Lloh0:
	adrp	x8, _SCAN_ER_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCAN_ER_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _SCAN_ER_TAGX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCAN_ER_TAGX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _SCAN_ER_TAG_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCAN_ER_TAG_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.2:
Lloh9:
	adrp	x8, _SCAN_ADDR_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCAN_ADDR_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, w23
	b.ne	LBB0_9
; %bb.3:
Lloh12:
	adrp	x8, _SCAN_ADDR_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCAN_ADDR_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh15:
	adrp	x9, _SCAN_ADDR_PORT_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SCAN_ADDR_PORT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.4:
Lloh18:
	adrp	x8, _SCAN_ADDR_ADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCAN_ADDR_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w22, w8, w21
Lloh21:
	adrp	x8, _SCAN_ADDR_AG32@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SCAN_ADDR_AG32@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_bcma_erom_get_ent
LBB0_6:
Lloh24:
	adrp	x8, _SCAN_ADDR_SZ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SCAN_ADDR_SZ@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh27:
	adrp	x9, _SCAN_ADDR_SZ_SZD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SCAN_ADDR_SZ_SZD@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_bcma_erom_get_ent
Lloh30:
	adrp	x8, _SCAN_SIZE_SG32@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SCAN_SIZE_SG32@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_bcma_erom_get_ent
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_bcma_erom_push_ent
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SCAN_ER_VALID,4,2              ; @SCAN_ER_VALID
	.comm	_SCAN_ER_TAGX,4,2               ; @SCAN_ER_TAGX
	.comm	_SCAN_ER_TAG_ADDR,4,2           ; @SCAN_ER_TAG_ADDR
	.comm	_SCAN_ADDR_TYPE,4,2             ; @SCAN_ADDR_TYPE
	.comm	_SCAN_ADDR_PORT,4,2             ; @SCAN_ADDR_PORT
	.comm	_SCAN_ADDR_PORT_SHIFT,4,2       ; @SCAN_ADDR_PORT_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCAN_ADDR_ADDR,4,2             ; @SCAN_ADDR_ADDR
	.comm	_SCAN_ADDR_AG32,4,2             ; @SCAN_ADDR_AG32
	.comm	_SCAN_ADDR_SZ,4,2               ; @SCAN_ADDR_SZ
	.comm	_SCAN_ADDR_SZ_SZD,4,2           ; @SCAN_ADDR_SZ_SZD
	.comm	_SCAN_SIZE_SZ,4,2               ; @SCAN_SIZE_SZ
	.comm	_SCAN_SIZE_SG32,4,2             ; @SCAN_SIZE_SG32
	.comm	_SCAN_ADDR_SZ_BASE,4,2          ; @SCAN_ADDR_SZ_BASE
	.comm	_SCAN_ADDR_SZ_SHIFT,4,2         ; @SCAN_ADDR_SZ_SHIFT
	.no_dead_strip	_bcma_erom_get_addr_desc
.subsections_via_symbols
