	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsit_enum_mbus_code
_hsit_enum_mbus_code:                   ## @hsit_enum_mbus_code
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_to_hsit
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	8(%rbx), %rsi
	movq	_HSIT_PAD_SINK@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpq	(%rdi), %rsi
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	cmpq	$0, (%rax)
	sete	%dl
LBB0_4:
	movq	_HSIT_PAD_SOURCE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
LBB0_6:
	orl	%edx, %ecx
	je	LBB0_8
## %bb.7:
	movq	_MEDIA_BUS_FMT_ARGB8888_1X32@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_MEDIA_BUS_FMT_AHSV8888_1X32@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HSIT_PAD_SINK,8,3              ## @HSIT_PAD_SINK
	.comm	_HSIT_PAD_SOURCE,8,3            ## @HSIT_PAD_SOURCE
	.comm	_MEDIA_BUS_FMT_ARGB8888_1X32,4,2 ## @MEDIA_BUS_FMT_ARGB8888_1X32
	.comm	_MEDIA_BUS_FMT_AHSV8888_1X32,4,2 ## @MEDIA_BUS_FMT_AHSV8888_1X32
	.no_dead_strip	_hsit_enum_mbus_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsit_enum_mbus_code
_hsit_enum_mbus_code:                   ; @hsit_enum_mbus_code
	.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	x19, x2
	bl	_to_hsit
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x8, _HSIT_PAD_SINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HSIT_PAD_SINK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w8, eq
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh6:
	adrp	x10, _HSIT_PAD_SOURCE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HSIT_PAD_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [x0]
	cmp	x9, #0
	cset	w9, ne
	b	LBB0_8
LBB0_7:
	mov	w9, #0
LBB0_8:
	mov	w0, #0
	orr	w8, w9, w8
	cbz	w8, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _MEDIA_BUS_FMT_ARGB8888_1X32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEDIA_BUS_FMT_ARGB8888_1X32@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _MEDIA_BUS_FMT_AHSV8888_1X32@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEDIA_BUS_FMT_AHSV8888_1X32@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HSIT_PAD_SINK,8,3              ; @HSIT_PAD_SINK
	.comm	_HSIT_PAD_SOURCE,8,3            ; @HSIT_PAD_SOURCE
	.comm	_MEDIA_BUS_FMT_ARGB8888_1X32,4,2 ; @MEDIA_BUS_FMT_ARGB8888_1X32
	.comm	_MEDIA_BUS_FMT_AHSV8888_1X32,4,2 ; @MEDIA_BUS_FMT_AHSV8888_1X32
	.no_dead_strip	_hsit_enum_mbus_code
.subsections_via_symbols
