	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_broadcast_channel
_set_broadcast_channel:                 ## @set_broadcast_channel
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r15
	cmpl	$0, (%r15)
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	je	LBB0_13
## %bb.2:
	cmpl	$8, (%rbx)
	jl	LBB0_13
## %bb.3:
	movl	%esi, %r14d
	movq	8(%rbx), %rax
	movq	_BC_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movq	_TCODE_READ_QUADLET_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %edx
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	movq	_CSR_BROADCAST_CHANNEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	addq	(%rax), %r9
	leaq	-36(%rbp), %rax
	movq	%r15, %rdi
	movl	%r14d, %ecx
	pushq	$4
	pushq	%rax
	callq	_fw_run_transaction
	addq	$16, %rsp
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.6:
	movq	8(%rbx), %rax
	jmp	LBB0_11
LBB0_7:
	movl	-36(%rbp), %r12d
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_cpu_to_be32
	testl	%r12d, %eax
	je	LBB0_9
## %bb.8:
	movq	_BC_IMPLEMENTED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_BC_UNIMPLEMENTED@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_11:
	movq	_BC_IMPLEMENTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_BROADCAST_CHANNEL_INITIAL@GOTPCREL(%rip), %rax
	movq	_BROADCAST_CHANNEL_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_be32
	movl	%eax, -36(%rbp)
	movq	_TCODE_WRITE_QUADLET_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %edx
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	movq	_CSR_BROADCAST_CHANNEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	addq	(%rax), %r9
	leaq	-36(%rbp), %rax
	movq	%r15, %rdi
	movl	%r14d, %ecx
	pushq	$4
	pushq	%rax
	callq	_fw_run_transaction
	addq	$16, %rsp
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BC_UNKNOWN,8,3                 ## @BC_UNKNOWN
	.comm	_TCODE_READ_QUADLET_REQUEST,4,2 ## @TCODE_READ_QUADLET_REQUEST
	.comm	_CSR_REGISTER_BASE,8,3          ## @CSR_REGISTER_BASE
	.comm	_CSR_BROADCAST_CHANNEL,8,3      ## @CSR_BROADCAST_CHANNEL
	.comm	_BC_IMPLEMENTED,8,3             ## @BC_IMPLEMENTED
	.comm	_BC_UNIMPLEMENTED,8,3           ## @BC_UNIMPLEMENTED
	.comm	_BROADCAST_CHANNEL_INITIAL,4,2  ## @BROADCAST_CHANNEL_INITIAL
	.comm	_BROADCAST_CHANNEL_VALID,4,2    ## @BROADCAST_CHANNEL_VALID
	.comm	_TCODE_WRITE_QUADLET_REQUEST,4,2 ## @TCODE_WRITE_QUADLET_REQUEST
	.no_dead_strip	_set_broadcast_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_broadcast_channel
_set_broadcast_channel:                 ; @set_broadcast_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x20, [x0, #32]
	ldr	w8, [x20]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_13
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #8
	b.lt	LBB0_13
; %bb.3:
	mov	x19, x1
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _BC_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BC_UNKNOWN@GOTPAGEOFF]
Lloh2:
	adrp	x22, _CSR_REGISTER_BASE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x23, _CSR_BROADCAST_CHANNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CSR_BROADCAST_CHANNEL@GOTPAGEOFF]
Lloh7:
	adrp	x24, _BC_IMPLEMENTED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BC_IMPLEMENTED@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
Lloh9:
	adrp	x8, _TCODE_READ_QUADLET_REQUEST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCODE_READ_QUADLET_REQUEST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	w4, w2, [x21, #16]
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x5, x9, x8
	add	x6, sp, #12
	mov	x0, x20
	mov	x3, x19
	mov	w7, #4
	bl	_fw_run_transaction
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x21, #8]
	b	LBB0_11
LBB0_7:
	ldr	w25, [sp, #12]
	mov	w0, #-2147483648
	bl	_cpu_to_be32
	tst	w0, w25
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x24]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _BC_UNIMPLEMENTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BC_UNIMPLEMENTED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
LBB0_10:
	str	x8, [x21, #8]
LBB0_11:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh15:
	adrp	x8, _BROADCAST_CHANNEL_INITIAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BROADCAST_CHANNEL_INITIAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BROADCAST_CHANNEL_VALID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BROADCAST_CHANNEL_VALID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_be32
	str	w0, [sp, #12]
Lloh21:
	adrp	x8, _TCODE_WRITE_QUADLET_REQUEST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TCODE_WRITE_QUADLET_REQUEST@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldp	w4, w2, [x21, #16]
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x5, x9, x8
	add	x6, sp, #12
	mov	x0, x20
	mov	x3, x19
	mov	w7, #4
	bl	_fw_run_transaction
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BC_UNKNOWN,8,3                 ; @BC_UNKNOWN
	.comm	_TCODE_READ_QUADLET_REQUEST,4,2 ; @TCODE_READ_QUADLET_REQUEST
	.comm	_CSR_REGISTER_BASE,8,3          ; @CSR_REGISTER_BASE
	.comm	_CSR_BROADCAST_CHANNEL,8,3      ; @CSR_BROADCAST_CHANNEL
	.comm	_BC_IMPLEMENTED,8,3             ; @BC_IMPLEMENTED
	.comm	_BC_UNIMPLEMENTED,8,3           ; @BC_UNIMPLEMENTED
	.comm	_BROADCAST_CHANNEL_INITIAL,4,2  ; @BROADCAST_CHANNEL_INITIAL
	.comm	_BROADCAST_CHANNEL_VALID,4,2    ; @BROADCAST_CHANNEL_VALID
	.comm	_TCODE_WRITE_QUADLET_REQUEST,4,2 ; @TCODE_WRITE_QUADLET_REQUEST
	.no_dead_strip	_set_broadcast_channel
.subsections_via_symbols
