	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_to_intf
_mac_to_intf:                           ## @mac_to_intf
	.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), %rax
	movl	(%rax), %r12d
	movq	_PAS_DMA_CAP_IFI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_dma_reg
	movl	%eax, %r15d
	movq	_PAS_DMA_CAP_IFI_NIN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r15d, %ebx
	movq	_PAS_DMA_CAP_IFI_NIN_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_PAS_DMA_CAP_IFI_IOFF_M@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_PAS_DMA_CAP_IFI_IOFF_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movl	$-1, %eax
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.1:
	addl	$3, %ebx
	shrl	$2, %ebx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %edi
	callq	_read_dma_reg
	movzbl	%al, %ecx
	cmpl	%r12d, %ecx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%ah, %ecx
	cmpl	%r12d, %ecx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	cmpl	%r12d, %ecx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	shrl	$24, %eax
	cmpl	%r12d, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$4, %r13d
	decl	%ebx
	jne	LBB0_2
## %bb.11:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_5:
	movl	$1, %r14d
	jmp	LBB0_3
LBB0_7:
	movl	$2, %r14d
	jmp	LBB0_3
LBB0_9:
	movl	$3, %r14d
LBB0_3:
	orl	%r13d, %r14d
	movl	%r14d, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAS_DMA_CAP_IFI,4,2            ## @PAS_DMA_CAP_IFI
	.comm	_PAS_DMA_CAP_IFI_NIN_M,4,2      ## @PAS_DMA_CAP_IFI_NIN_M
	.comm	_PAS_DMA_CAP_IFI_NIN_S,4,2      ## @PAS_DMA_CAP_IFI_NIN_S
	.comm	_PAS_DMA_CAP_IFI_IOFF_M,4,2     ## @PAS_DMA_CAP_IFI_IOFF_M
	.comm	_PAS_DMA_CAP_IFI_IOFF_S,4,2     ## @PAS_DMA_CAP_IFI_IOFF_S
	.no_dead_strip	_mac_to_intf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_to_intf
_mac_to_intf:                           ; @mac_to_intf
	.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
	ldr	x8, [x0]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _PAS_DMA_CAP_IFI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAS_DMA_CAP_IFI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_read_dma_reg
Lloh3:
	adrp	x8, _PAS_DMA_CAP_IFI_NIN_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAS_DMA_CAP_IFI_NIN_M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _PAS_DMA_CAP_IFI_NIN_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAS_DMA_CAP_IFI_NIN_S@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w19, #0
Lloh9:
	adrp	x9, _PAS_DMA_CAP_IFI_IOFF_M@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAS_DMA_CAP_IFI_IOFF_M@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh12:
	adrp	x10, _PAS_DMA_CAP_IFI_IOFF_S@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PAS_DMA_CAP_IFI_IOFF_S@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	asr	w21, w9, w10
	add	w8, w8, #3
	lsr	w22, w8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w21, w19
	bl	_read_dma_reg
	cmp	w20, w0, uxtb
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w0, #8
	cmp	w20, w8, uxtb
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w0, #16
	cmp	w20, w8, uxtb
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, w0, lsr #24
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #4
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_7:
	mov	w0, #-1
	b	LBB0_13
LBB0_8:
	mov	w8, #0
	mov	w0, w19
	b	LBB0_13
LBB0_9:
	mov	w8, #1
	b	LBB0_12
LBB0_10:
	mov	w8, #2
	b	LBB0_12
LBB0_11:
	mov	w8, #3
LBB0_12:
	orr	w0, w8, w19
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAS_DMA_CAP_IFI,4,2            ; @PAS_DMA_CAP_IFI
	.comm	_PAS_DMA_CAP_IFI_NIN_M,4,2      ; @PAS_DMA_CAP_IFI_NIN_M
	.comm	_PAS_DMA_CAP_IFI_NIN_S,4,2      ; @PAS_DMA_CAP_IFI_NIN_S
	.comm	_PAS_DMA_CAP_IFI_IOFF_M,4,2     ; @PAS_DMA_CAP_IFI_IOFF_M
	.comm	_PAS_DMA_CAP_IFI_IOFF_S,4,2     ; @PAS_DMA_CAP_IFI_IOFF_S
	.no_dead_strip	_mac_to_intf
.subsections_via_symbols
