	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_erom_is_bridge
_bcma_erom_is_bridge:                   ## @bcma_erom_is_bridge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_bcma_erom_get_ent
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bcma_erom_push_ent
	movq	_SCAN_ER_VALID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r14d, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_SCAN_ER_TAGX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	movq	_SCAN_ER_TAG_ADDR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.2:
	movq	_SCAN_ADDR_TYPE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_SCAN_ADDR_TYPE_BRIDGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %r14d
	sete	%al
LBB0_3:
	popq	%rbx
	popq	%r14
	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_TYPE_BRIDGE,4,2      ## @SCAN_ADDR_TYPE_BRIDGE
	.no_dead_strip	_bcma_erom_is_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_erom_is_bridge
_bcma_erom_is_bridge:                   ; @bcma_erom_is_bridge
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_bcma_erom_get_ent
	mov	x19, x0
	mov	x0, x20
	bl	_bcma_erom_push_ent
Lloh0:
	adrp	x8, _SCAN_ER_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCAN_ER_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SCAN_ER_TAGX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCAN_ER_TAGX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w19
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_3
; %bb.2:
Lloh9:
	adrp	x8, _SCAN_ADDR_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCAN_ADDR_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh12:
	adrp	x9, _SCAN_ADDR_TYPE_BRIDGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SCAN_ADDR_TYPE_BRIDGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_TYPE_BRIDGE,4,2      ; @SCAN_ADDR_TYPE_BRIDGE
	.no_dead_strip	_bcma_erom_is_bridge
.subsections_via_symbols
