	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amba_find_match
_amba_find_match:                       ## @amba_find_match
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_amba_device
	movq	%rax, %r15
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	andl	(%r15), %eax
	cmpl	%ecx, %eax
	sete	%r12b
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	cmpl	%ecx, %eax
	sete	%al
	cmpq	(%r14), %rdx
	sete	%r12b
	andb	%al, %r12b
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_dev_name
	movq	24(%rbx), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	sete	%cl
	xorl	%eax, %eax
	testb	%cl, %r12b
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_get_device
	movq	%r15, 16(%rbx)
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	testb	%r12b, %r12b
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_amba_find_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amba_find_match
_amba_find_match:                       ; @amba_find_match
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_to_amba_device
	mov	x21, x0
	ldr	w9, [x0]
	ldp	w10, w8, [x19]
	and	w9, w10, w9
	cmp	w9, w8
	cset	w22, eq
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_2
; %bb.1:
	cmp	w9, w8
	ldr	x8, [x20]
	ccmp	x10, x8, #0, eq
	cset	w22, eq
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_dev_name
	ldr	x1, [x19, #24]
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	and	w8, w22, w8
	tbz	w8, #0, LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_get_device
	str	x21, [x19, #16]
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	cbnz	w22, LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_amba_find_match
.subsections_via_symbols
