	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_entity_get_fwnode_pad    ## -- Begin function media_entity_get_fwnode_pad
	.p2align	4, 0x90
_media_entity_get_fwnode_pad:           ## @media_entity_get_fwnode_pad
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.7:
	leaq	-24(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_fwnode_graph_parse_endpoint
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	16(%r14), %rax
	leaq	-24(%rbp), %rdi
	callq	*(%rax)
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	cmpl	(%r14), %eax
	jae	LBB0_6
## %bb.10:
	movq	8(%r14), %rcx
	movl	%eax, %edx
	testq	%rbx, (%rcx,%rdx,8)
	jne	LBB0_11
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movq	8(%r14), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, (%rdx,%rax,8)
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_4
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_entity_get_fwnode_pad    ; -- Begin function media_entity_get_fwnode_pad
	.p2align	2
_media_entity_get_fwnode_pad:           ; @media_entity_get_fwnode_pad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	x9, [x9]
	cbz	x9, LBB0_6
; %bb.2:
	mov	x8, x1
	add	x1, sp, #8
	mov	x0, x8
	bl	_fwnode_graph_parse_endpoint
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	w8, [x20]
	cmp	w0, w8
	b.hs	LBB0_10
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w0, uxtw #3]
	tst	x8, x19
	b.ne	LBB0_11
	b	LBB0_10
LBB0_6:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.7:
	mov	x0, #0
	ldr	x9, [x20, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x0, lsl #3]
	tst	x10, x19
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_8
LBB0_10:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
