	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_mbox_err
_bcm2835_mbox_err:                      ## @bcm2835_mbox_err
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	%rdx, %rsi
	jne	LBB0_1
## %bb.4:
	movq	(%rcx), %rax
	movq	_BCM2835_MBOX_CODE_RESP_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.6:
	cmpq	$0, 8(%rcx)
	je	LBB0_13
## %bb.7:
	leaq	(%rcx,%r8,4), %r8
	addq	$8, %rcx
	movq	_BCM2835_MBOX_TAG_VAL_LEN_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %esi
	notl	%esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rcx), %eax
	testl	%eax, %r9d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	andl	%esi, %eax
	movl	%eax, 8(%rcx)
	movslq	12(%rcx), %rax
	leaq	(%rcx,%rax,4), %rcx
	addq	$64, %rcx
	cmpq	%r8, %rcx
	ja	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%edx
	cmpq	$0, (%rcx)
	jne	LBB0_8
LBB0_13:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_device_printf
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_3
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"response channel mismatch\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_BCM2835_MBOX_CODE_RESP_SUCCESS,8,3 ## @BCM2835_MBOX_CODE_RESP_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"mbox response error\n"

	.comm	_BCM2835_MBOX_TAG_VAL_LEN_RESPONSE,4,2 ## @BCM2835_MBOX_TAG_VAL_LEN_RESPONSE
L_.str.2:                               ## @.str.2
	.asciz	"tag %d response error\n"

L_.str.3:                               ## @.str.3
	.asciz	"mbox buffer size error\n"

	.no_dead_strip	_bcm2835_mbox_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_mbox_err
_bcm2835_mbox_err:                      ; @bcm2835_mbox_err
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	cmp	x1, x2
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x3]
Lloh0:
	adrp	x9, _BCM2835_MBOX_CODE_RESP_SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM2835_MBOX_CODE_RESP_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x9, x3
	ldr	x8, [x9, #8]!
	cbz	x8, LBB0_7
; %bb.3:
	mov	w8, #0
	add	x10, x3, x4, lsl #2
Lloh3:
	adrp	x11, _BCM2835_MBOX_TAG_VAL_LEN_RESPONSE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _BCM2835_MBOX_TAG_VAL_LEN_RESPONSE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	mvn	w12, w11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9, #8]
	tst	w11, w13
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w13, w13, w12
	str	w13, [x9, #8]
	ldrsw	x13, [x9, #12]
	add	x9, x9, x13, lsl #2
	add	x9, x9, #64
	cmp	x9, x10
	b.hi	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	ldr	x13, [x9]
	cbnz	x13, LBB0_4
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_device_printf
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_12:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_13:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"response channel mismatch\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_BCM2835_MBOX_CODE_RESP_SUCCESS,8,3 ; @BCM2835_MBOX_CODE_RESP_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"mbox response error\n"

	.comm	_BCM2835_MBOX_TAG_VAL_LEN_RESPONSE,4,2 ; @BCM2835_MBOX_TAG_VAL_LEN_RESPONSE
l_.str.2:                               ; @.str.2
	.asciz	"tag %d response error\n"

l_.str.3:                               ; @.str.3
	.asciz	"mbox buffer size error\n"

	.no_dead_strip	_bcm2835_mbox_err
.subsections_via_symbols
