	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1273_fm_set_audio
_wl1273_fm_set_audio:                   ## @wl1273_fm_set_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_WL1273_MODE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_WL1273_MODE_SUSPENDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_WL1273_MODE_RX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_WL1273_AUDIO_DIGITAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rsi, %rax
	jne	LBB0_8
## %bb.4:
	cmpl	%r14d, %ecx
	jne	LBB0_8
## %bb.5:
	movq	_WL1273_PCM_MODE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL1273_PCM_DEF_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wl1273_fm_write_cmd
	testl	%eax, %eax
	jne	LBB0_20
## %bb.6:
	movq	_WL1273_I2S_MODE_CONFIG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%rbx, %rdi
	callq	_wl1273_fm_write_cmd
	testl	%eax, %eax
	jne	LBB0_20
## %bb.7:
	movq	_WL1273_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL1273_AUDIO_ENABLE_I2S@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_8:
	movq	_WL1273_AUDIO_ANALOG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rsi, %rax
	jne	LBB0_11
## %bb.9:
	cmpl	%r14d, %edx
	jne	LBB0_11
## %bb.10:
	movq	_WL1273_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL1273_AUDIO_ENABLE_ANALOG@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wl1273_fm_write_cmd
	testl	%eax, %eax
	jne	LBB0_20
LBB0_19:
	movl	%r14d, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_11:
	movq	_WL1273_MODE_TX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_15
## %bb.12:
	cmpl	%r14d, %ecx
	jne	LBB0_15
## %bb.13:
	movq	_WL1273_I2S_MODE_CONFIG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%rbx, %rdi
	callq	_wl1273_fm_write_cmd
	testl	%eax, %eax
	je	LBB0_14
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	cmpq	%rsi, %rax
	jne	LBB0_19
## %bb.16:
	cmpl	%r14d, %edx
	jne	LBB0_19
## %bb.17:
	movq	_WL1273_AUDIO_IO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL1273_AUDIO_IO_SET_ANALOG@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_WL1273_AUDIO_IO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL1273_AUDIO_IO_SET_I2S@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1273_MODE_OFF,8,3            ## @WL1273_MODE_OFF
	.comm	_WL1273_MODE_SUSPENDED,8,3      ## @WL1273_MODE_SUSPENDED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_WL1273_MODE_RX,8,3             ## @WL1273_MODE_RX
	.comm	_WL1273_AUDIO_DIGITAL,4,2       ## @WL1273_AUDIO_DIGITAL
	.comm	_WL1273_PCM_MODE_SET,4,2        ## @WL1273_PCM_MODE_SET
	.comm	_WL1273_PCM_DEF_MODE,4,2        ## @WL1273_PCM_DEF_MODE
	.comm	_WL1273_I2S_MODE_CONFIG_SET,4,2 ## @WL1273_I2S_MODE_CONFIG_SET
	.comm	_WL1273_AUDIO_ENABLE,4,2        ## @WL1273_AUDIO_ENABLE
	.comm	_WL1273_AUDIO_ENABLE_I2S,4,2    ## @WL1273_AUDIO_ENABLE_I2S
	.comm	_WL1273_AUDIO_ANALOG,4,2        ## @WL1273_AUDIO_ANALOG
	.comm	_WL1273_AUDIO_ENABLE_ANALOG,4,2 ## @WL1273_AUDIO_ENABLE_ANALOG
	.comm	_WL1273_MODE_TX,8,3             ## @WL1273_MODE_TX
	.comm	_WL1273_AUDIO_IO_SET,4,2        ## @WL1273_AUDIO_IO_SET
	.comm	_WL1273_AUDIO_IO_SET_I2S,4,2    ## @WL1273_AUDIO_IO_SET_I2S
	.comm	_WL1273_AUDIO_IO_SET_ANALOG,4,2 ## @WL1273_AUDIO_IO_SET_ANALOG
	.no_dead_strip	_wl1273_fm_set_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1273_fm_set_audio
_wl1273_fm_set_audio:                   ; @wl1273_fm_set_audio
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WL1273_MODE_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1273_MODE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WL1273_MODE_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WL1273_MODE_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh9:
	adrp	x9, _WL1273_MODE_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WL1273_MODE_RX@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x9]
Lloh12:
	adrp	x9, _WL1273_AUDIO_DIGITAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WL1273_AUDIO_DIGITAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x8, x11
	ccmp	w9, w1, #0, eq
	b.eq	LBB0_7
; %bb.3:
Lloh15:
	adrp	x10, _WL1273_AUDIO_ANALOG@GOTPAGE
Lloh16:
	ldr	x10, [x10, _WL1273_AUDIO_ANALOG@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x8, x11
	ccmp	w10, w19, #0, eq
	b.eq	LBB0_10
; %bb.4:
Lloh18:
	adrp	x11, _WL1273_MODE_TX@GOTPAGE
Lloh19:
	ldr	x11, [x11, _WL1273_MODE_TX@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	w9, w19, #0, eq
	b.eq	LBB0_13
; %bb.5:
	cmp	x8, x11
	ccmp	w10, w19, #0, eq
	b.ne	LBB0_12
; %bb.6:
Lloh21:
	adrp	x8, _WL1273_AUDIO_IO_SET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WL1273_AUDIO_IO_SET@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _WL1273_AUDIO_IO_SET_ANALOG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WL1273_AUDIO_IO_SET_ANALOG@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh26:
	adrp	x8, _WL1273_PCM_MODE_SET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WL1273_PCM_MODE_SET@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _WL1273_PCM_DEF_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WL1273_PCM_DEF_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_wl1273_fm_write_cmd
	cbnz	w0, LBB0_14
; %bb.8:
Lloh32:
	adrp	x8, _WL1273_I2S_MODE_CONFIG_SET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WL1273_I2S_MODE_CONFIG_SET@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x20
	bl	_wl1273_fm_write_cmd
	cbnz	w0, LBB0_14
; %bb.9:
Lloh35:
	adrp	x8, _WL1273_AUDIO_ENABLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WL1273_AUDIO_ENABLE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _WL1273_AUDIO_ENABLE_I2S@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WL1273_AUDIO_ENABLE_I2S@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh40:
	adrp	x8, _WL1273_AUDIO_ENABLE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WL1273_AUDIO_ENABLE@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _WL1273_AUDIO_ENABLE_ANALOG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WL1273_AUDIO_ENABLE_ANALOG@GOTPAGEOFF]
LBB0_11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_wl1273_fm_write_cmd
	cbnz	w0, LBB0_14
LBB0_12:
	mov	w0, #0
	str	w19, [x20, #8]
	b	LBB0_14
LBB0_13:
Lloh45:
	adrp	x8, _WL1273_I2S_MODE_CONFIG_SET@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WL1273_I2S_MODE_CONFIG_SET@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x20
	bl	_wl1273_fm_write_cmd
	cbz	w0, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh48:
	adrp	x8, _WL1273_AUDIO_IO_SET@GOTPAGE
Lloh49:
	ldr	x8, [x8, _WL1273_AUDIO_IO_SET@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _WL1273_AUDIO_IO_SET_I2S@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WL1273_AUDIO_IO_SET_I2S@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1273_MODE_OFF,8,3            ; @WL1273_MODE_OFF
	.comm	_WL1273_MODE_SUSPENDED,8,3      ; @WL1273_MODE_SUSPENDED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_WL1273_MODE_RX,8,3             ; @WL1273_MODE_RX
	.comm	_WL1273_AUDIO_DIGITAL,4,2       ; @WL1273_AUDIO_DIGITAL
	.comm	_WL1273_PCM_MODE_SET,4,2        ; @WL1273_PCM_MODE_SET
	.comm	_WL1273_PCM_DEF_MODE,4,2        ; @WL1273_PCM_DEF_MODE
	.comm	_WL1273_I2S_MODE_CONFIG_SET,4,2 ; @WL1273_I2S_MODE_CONFIG_SET
	.comm	_WL1273_AUDIO_ENABLE,4,2        ; @WL1273_AUDIO_ENABLE
	.comm	_WL1273_AUDIO_ENABLE_I2S,4,2    ; @WL1273_AUDIO_ENABLE_I2S
	.comm	_WL1273_AUDIO_ANALOG,4,2        ; @WL1273_AUDIO_ANALOG
	.comm	_WL1273_AUDIO_ENABLE_ANALOG,4,2 ; @WL1273_AUDIO_ENABLE_ANALOG
	.comm	_WL1273_MODE_TX,8,3             ; @WL1273_MODE_TX
	.comm	_WL1273_AUDIO_IO_SET,4,2        ; @WL1273_AUDIO_IO_SET
	.comm	_WL1273_AUDIO_IO_SET_I2S,4,2    ; @WL1273_AUDIO_IO_SET_I2S
	.comm	_WL1273_AUDIO_IO_SET_ANALOG,4,2 ; @WL1273_AUDIO_IO_SET_ANALOG
	.no_dead_strip	_wl1273_fm_set_audio
.subsections_via_symbols
