	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm2835_clkman_set_frequency   ## -- Begin function bcm2835_clkman_set_frequency
	.p2align	4, 0x90
_bcm2835_clkman_set_frequency:          ## @bcm2835_clkman_set_frequency
	.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
	movl	%edx, %r15d
	movl	%esi, %r13d
	callq	_device_get_softc
	movq	%rax, %r14
	movq	_BCM_PWM_CLKSRC@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$6, %edx
	callq	_W_CMCLK
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.4:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.6:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.7:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.8:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.9:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.10:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.11:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %ebx
	testb	$-128, %bl
	je	LBB0_13
## %bb.12:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
LBB0_13:
	testb	$-128, %bl
	jne	LBB0_14
## %bb.15:
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.16:
	movl	$500000000, %eax                ## imm = 0x1DCD6500
	xorl	%edx, %edx
	idivl	%r15d
	cmpl	$4, %eax
	jge	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_33
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_33
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
LBB0_33:
	movl	(%r14), %edi
	movl	%r13d, %edx
	callq	_device_printf
LBB0_34:
	xorl	%r15d, %r15d
LBB0_35:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%eax, %ecx
	cmpl	$4095, %eax                     ## imm = 0xFFF
	jbe	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_33
LBB0_20:
	movl	$500000000, %eax                ## imm = 0x1DCD6500
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
	shll	$12, %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ecx, %edx
	callq	_W_CMDIV
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$22, %edx
	callq	_W_CMCLK
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.21:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.22:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.23:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.24:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.25:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.26:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.27:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.28:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.29:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_R_CMCLK
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_31
## %bb.30:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
LBB0_31:
	testb	$-128, %r12b
	jne	LBB0_35
## %bb.32:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_PWM_CLKSRC,4,2             ## @BCM_PWM_CLKSRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported unit 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to stop clock for unit 0x%x"

L_.str.2:                               ## @.str.2
	.asciz	"Frequency too high for unit 0x%x (max: 125 MHz)"

L_.str.3:                               ## @.str.3
	.asciz	"Frequency too low for unit 0x%x (min: 123 kHz)"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to start clock for unit 0x%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm2835_clkman_set_frequency   ; -- Begin function bcm2835_clkman_set_frequency
	.p2align	2
_bcm2835_clkman_set_frequency:          ; @bcm2835_clkman_set_frequency
	.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
	mov	x21, x2
	mov	x19, x1
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _BCM_PWM_CLKSRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM_PWM_CLKSRC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_16
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #6
	bl	_W_CMCLK
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.2:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.3:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.4:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.5:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.6:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.7:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.8:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.9:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.10:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbz	w0, #7, LBB0_12
; %bb.11:
	mov	w0, #1000
	bl	_DELAY
LBB0_12:
	tbnz	w22, #7, LBB0_17
; %bb.13:
	cbz	w21, LBB0_19
; %bb.14:
	mov	w8, #25856
	movk	w8, #7629, lsl #16
	sdiv	w9, w8, w21
	cmp	w9, #4
	b.ge	LBB0_20
; %bb.15:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	ldr	w0, [x20]
	mov	x2, x19
	bl	_device_printf
	mov	w21, #0
LBB0_19:
	mov	x0, x21
	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
LBB0_20:
	cmp	w9, #4095
	b.ls	LBB0_22
; %bb.21:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_22:
	lsl	w2, w9, #12
	udiv	w21, w8, w9
	mov	x0, x20
	mov	x1, x19
	bl	_W_CMDIV
	mov	x0, x20
	mov	x1, x19
	mov	w2, #22
	bl	_W_CMCLK
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.23:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.24:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.25:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.26:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.27:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.28:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.29:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.30:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	tbnz	w0, #7, LBB0_34
; %bb.31:
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x20
	mov	x1, x19
	bl	_R_CMCLK
	mov	x22, x0
	tbnz	w0, #7, LBB0_33
; %bb.32:
	mov	w0, #1000
	bl	_DELAY
LBB0_33:
	mov	x0, x22
LBB0_34:
	tbnz	w0, #7, LBB0_19
; %bb.35:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_PWM_CLKSRC,4,2             ; @BCM_PWM_CLKSRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported unit 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to stop clock for unit 0x%x"

l_.str.2:                               ; @.str.2
	.asciz	"Frequency too high for unit 0x%x (max: 125 MHz)"

l_.str.3:                               ; @.str.3
	.asciz	"Frequency too low for unit 0x%x (min: 123 kHz)"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to start clock for unit 0x%x"

.subsections_via_symbols
