	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_init_uart
_ath10k_init_uart:                      ## @ath10k_init_uart
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_hi_serial_enable@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_uart_print@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.7:
	movq	_hi_dbg_uart_txpin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_10
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_warn
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.5:
	movq	_hi_dbg_uart_txpin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_10:
	movq	_hi_desired_baud_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$19200, %edx                    ## imm = 0x4B00
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_info
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_serial_enable,4,2           ## @hi_serial_enable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not disable UART prints (%d)\n"

	.comm	_uart_print,4,2                 ## @uart_print
	.comm	_hi_dbg_uart_txpin,4,2          ## @hi_dbg_uart_txpin
L_.str.1:                               ## @.str.1
	.asciz	"failed to set UART TX pin: %d"

L_.str.2:                               ## @.str.2
	.asciz	"could not enable UART prints (%d)\n"

	.comm	_hi_desired_baud_rate,4,2       ## @hi_desired_baud_rate
L_.str.3:                               ## @.str.3
	.asciz	"could not set the baud rate (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"UART prints enabled\n"

	.no_dead_strip	_ath10k_init_uart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_init_uart
_ath10k_init_uart:                      ; @ath10k_init_uart
	.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	x19, x0
Lloh0:
	adrp	x21, _hi_serial_enable@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hi_serial_enable@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_ath10k_bmi_write32
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
Lloh4:
	adrp	x8, _uart_print@GOTPAGE
Lloh5:
	ldr	x8, [x8, _uart_print@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _hi_dbg_uart_txpin@GOTPAGE
Lloh8:
	ldr	x8, [x8, _hi_dbg_uart_txpin@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ath10k_bmi_write32
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_ath10k_bmi_write32
	cbz	w0, LBB0_10
LBB0_5:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _hi_dbg_uart_txpin@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hi_dbg_uart_txpin@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ath10k_bmi_write32
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.8:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:
	mov	w20, #0
	b	LBB0_13
LBB0_10:
Lloh17:
	adrp	x8, _hi_desired_baud_rate@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hi_desired_baud_rate@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #19200
	bl	_ath10k_bmi_write32
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.11:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
LBB0_13:
	mov	x0, x20
	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_14:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_info
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_serial_enable,4,2           ; @hi_serial_enable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not disable UART prints (%d)\n"

	.comm	_uart_print,4,2                 ; @uart_print
	.comm	_hi_dbg_uart_txpin,4,2          ; @hi_dbg_uart_txpin
l_.str.1:                               ; @.str.1
	.asciz	"failed to set UART TX pin: %d"

l_.str.2:                               ; @.str.2
	.asciz	"could not enable UART prints (%d)\n"

	.comm	_hi_desired_baud_rate,4,2       ; @hi_desired_baud_rate
l_.str.3:                               ; @.str.3
	.asciz	"could not set the baud rate (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"UART prints enabled\n"

	.no_dead_strip	_ath10k_init_uart
.subsections_via_symbols
